-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Add links to release headers #10808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add links to release headers #10808
Conversation
Builds ready [82d21f8]
Page Load Metrics (580 ± 59 ms)
|
82d21f8 to
b5655d8
Compare
b5655d8 to
f79eb0c
Compare
Builds ready [f79eb0c]
Page Load Metrics (616 ± 46 ms)
|
rekmarks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be a joy to use.
development/auto-changelog.js
Outdated
| changelogLines.splice(firstReleaseHeaderIndex, 0, versionHeader, ''); | ||
| releaseHeaderIndex = firstReleaseHeaderIndex; | ||
|
|
||
| // Update release links |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: "links" is a confusing reference. It would be better if the comment stated that it's rewriting the Unreleased link and inserting a link for new version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be more specific, it's a link reference definition: https://github.github.com/gfm/#link-reference-definitions
I'll update the comment to better explain this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed here: bad85c4
Each release header now includes a link to the range of commits included with that release. These links are at the end of the document, in accordance with the "keep a changelog" [1] format. For the purpose of this changelog, the "previous release" is the most recent release mentioned in the changelogs. The diffs ignore any releases that were omitted from the changelog. This is mainly an issue with older releases, so it seemed acceptable. All releases have been documented for a couple of years now, and will be going forward as well. The name of the "Current Develop Branch" section was changed to "Unreleased" to confirm with "keep a changelog". The `auto-changelog.js` script has been updated to update/add these links whenever adding a new release header as well. [1]: https://keepachangelog.com/en/1.0.0/
f79eb0c to
bad85c4
Compare
brad-decker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! nice work
Builds ready [bad85c4]
Page Load Metrics (531 ± 40 ms)
|
rekmarks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Each release header now includes a link to the range of commits included with that release. These links are at the end of the document, in accordance with the "keep a changelog" format.
For the purpose of this changelog, the "previous release" is the most recent release mentioned in the changelogs. The diffs ignore any releases that were omitted from the changelog. This is mainly an issue with older releases, so it seemed acceptable. All releases have been documented for a couple of years now, and will be going forward as well.
The name of the "Current Develop Branch" section was changed to "Unreleased" to confirm with "keep a changelog".
The
auto-changelog.jsscript has been updated to update/add these links whenever adding a new release header as well.Relates to #10752
Manual testing steps:
For development changelog updates:
yarn update-changelogFor RC changelog updates with existing release header:
versioninapp/manifest/_base.json, to simulate an RC-like environmentyarn update-changelogUnreleasedlink.For updates without a release header:
versioninapp/manifest/_base.json, to simulate an RC-like environmentyarn update-changelog