mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 06:34:21 +00:00
Separate and improve wording for pre
and rc
pre-release versions
This commit is contained in:
parent
dd40011967
commit
5c9e985999
1 changed files with 13 additions and 1 deletions
|
@ -93,7 +93,14 @@ function prereleaseTemplate(items) {
|
|||
|
||||
[See the full changelog](${items.fullChangelogUrl})
|
||||
|
||||
This is a release candidate for v${stableVersion(items.version)} to ensure maximum stability for public release.
|
||||
${prereleaseType(items.version) === "rc" ?
|
||||
`This is a release candidate (RC) for v${stableVersion(items.version)} to ensure maximum stability for public release.
|
||||
Bugs may be fixed, but no further features will be added until the next stable version.` :
|
||||
|
||||
`This is a pre-release for v${stableVersion(items.version)} to offer latest changes without having to wait for a stable release.
|
||||
At this stage, features may still be added or modified until the first release candidate for this version gets released.`
|
||||
}
|
||||
|
||||
Please refer to the commit list given above for a complete list of changes, or wait for the stable release to get a thoroughly prepared change log entry.
|
||||
|
||||
As with all pre-releases, this version requires explicit use of the \`next\` tag to be installed:
|
||||
|
@ -170,6 +177,11 @@ function isPrerelease(v) {
|
|||
return v.includes("-");
|
||||
}
|
||||
|
||||
// Given a version of `x.y.z-abc.n`, returns `abc`, i.e. the type of pre-release
|
||||
function prereleaseType(v) {
|
||||
return semver.prerelease(v)[0];
|
||||
}
|
||||
|
||||
// Returns the stable version that this pre-release version is targeting. For
|
||||
// example, if new version is 2.5.0-rc.2, next stable version will be 2.5.0.
|
||||
function stableVersion(prereleaseVersion) {
|
||||
|
|
Loading…
Reference in a new issue