Skip to content

Commit 4f8761c

Browse files
authored
Merge pull request #18099 from github/unpublish-rc-release-notes
Unpublish RC release notes
2 parents 099fa24 + ab4b44d commit 4f8761c

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

data/release-notes/3-0/0-rc1.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
date: '2021-01-12'
22
release_candidate: true
3+
deprecated: true
34
intro: Release candidate versions should be tested on non-production environments. For more information about the Release Candidate Program, see the [GitHub Blog](https://github.blog/2020-12-03-improving-the-ghes-release-process-release-candidates/) or "[About upgrades to new releases](/admin/overview/about-upgrades-to-new-releases)".
45
sections:
56
bugs:

data/release-notes/3-0/0-rc2.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
date: '2021-01-29'
22
release_candidate: true
3+
deprecated: true
34
intro: Release candidate versions should be tested on non-production environments. For more information about the Release Candidate Program, see the [GitHub Blog](https://github.blog/2020-12-03-improving-the-ghes-release-process-release-candidates/) or "[About upgrades to new releases](/admin/overview/about-upgrades-to-new-releases)."
45
sections:
56
bugs:

lib/release-notes-schema.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ module.exports = {
3737
type: 'boolean',
3838
default: false
3939
},
40+
deprecated: {
41+
type: 'boolean',
42+
default: false
43+
},
4044
sections: {
4145
required: true,
4246
type: 'object',

middleware/contextualizers/enterprise-release-notes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ function sortPatchKeys (release, version) {
1818
...release[key]
1919
}
2020
})
21+
// Filter out any deprecated patches
22+
.filter(key => !key.deprecated)
2123
return keys
2224
.sort((a, b) => {
2325
let aTemp = a.version

0 commit comments

Comments
 (0)