Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data/release-notes/3-0/0-rc1.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
date: '2021-01-12'
release_candidate: true
deprecated: true
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)".
sections:
bugs:
Expand Down
1 change: 1 addition & 0 deletions data/release-notes/3-0/0-rc2.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
date: '2021-01-29'
release_candidate: true
deprecated: true
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)."
sections:
bugs:
Expand Down
4 changes: 4 additions & 0 deletions lib/release-notes-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ module.exports = {
type: 'boolean',
default: false
},
deprecated: {
type: 'boolean',
default: false
},
sections: {
required: true,
type: 'object',
Expand Down
2 changes: 2 additions & 0 deletions middleware/contextualizers/enterprise-release-notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ function sortPatchKeys (release, version) {
...release[key]
}
})
// Filter out any deprecated patches
.filter(key => !key.deprecated)
return keys
.sort((a, b) => {
let aTemp = a.version
Expand Down