Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Apr 2, 2021

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.js script 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:

  • Run yarn update-changelog
  • See that it places changelog entries under 'Unreleased`

For RC changelog updates with existing release header:

  • Bump the version in app/manifest/_base.json, to simulate an RC-like environment
  • Add a new release header to the changelog for the new version
  • Run yarn update-changelog
  • See that it places changelog entries under the new release header along with a new release header link, and it updates the Unreleased link.

For updates without a release header:

  • Bump the version in app/manifest/_base.json, to simulate an RC-like environment
  • Run yarn update-changelog
  • See that it places changelog entries under the newly added release header

@Gudahtt
Copy link
Member Author

Gudahtt commented Apr 2, 2021

This depends upon #10795 and #10805

@metamaskbot
Copy link
Collaborator

Builds ready [82d21f8]
Page Load Metrics (580 ± 59 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint458761105
domContentLoaded33376257912259
load33476358012259
domInteractive33276257912259

Base automatically changed from update-release-header-format-and-fix-dates to develop April 2, 2021 20:47
@Gudahtt Gudahtt force-pushed the changelog-release-header-links branch from 82d21f8 to b5655d8 Compare April 2, 2021 21:12
@Gudahtt Gudahtt marked this pull request as ready for review April 2, 2021 21:12
@Gudahtt Gudahtt requested review from a team and kumavis as code owners April 2, 2021 21:12
@Gudahtt Gudahtt requested a review from shanejonas April 2, 2021 21:12
@Gudahtt Gudahtt force-pushed the changelog-release-header-links branch from b5655d8 to f79eb0c Compare April 2, 2021 21:13
@metamaskbot
Copy link
Collaborator

Builds ready [f79eb0c]
Page Load Metrics (616 ± 46 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint47806094
domContentLoaded3777636139445
load3797646169546
domInteractive3777636139445

Copy link
Member

@rekmarks rekmarks left a 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.

changelogLines.splice(firstReleaseHeaderIndex, 0, versionHeader, '');
releaseHeaderIndex = firstReleaseHeaderIndex;

// Update release links
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed here: bad85c4

Gudahtt added 2 commits April 6, 2021 13:49
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/
@Gudahtt Gudahtt force-pushed the changelog-release-header-links branch from f79eb0c to bad85c4 Compare April 6, 2021 16:25
Copy link
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! nice work

@metamaskbot
Copy link
Collaborator

Builds ready [bad85c4]
Page Load Metrics (531 ± 40 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint43685484
domContentLoaded3616295298441
load3626305318440
domInteractive3606285298441

Copy link
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Gudahtt Gudahtt merged commit 7b44bb3 into develop Apr 6, 2021
@Gudahtt Gudahtt deleted the changelog-release-header-links branch April 6, 2021 19:17
@github-actions github-actions bot locked and limited conversation to collaborators Apr 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants