Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync CHANGELOG.md with github release notes #402

Merged
merged 1 commit into from Mar 20, 2024

Conversation

dextero
Copy link
Contributor

@dextero dextero commented Mar 20, 2024

I was updating another crate to use bitflags v2 by using the changelog file as a sort of migration guide. Only when I was done going through the list of PRs I learned that the github release notes contained information than would have been useful 馃槄

So I pulled all the release notes as described on https://stackoverflow.com/a/76996206, and copied over any significant information I found missing to the CHANGELOG.md.

This might be helpful to anyone else like me who doesn't immediately think about looking at release notes.

Created by pulling all the release notes from Github as below, then
manually checking for missing info in CHANGELOG.md.

  for TAG in $(git tag -l); do
    curl -L "https://api.github.com/repos/bitflags/bitflags/releases/tags/$TAG" \
      | jq -r '.body' \
      > release-notes/$TAG;
  done
Copy link
Member

@KodrAus KodrAus left a comment

Choose a reason for hiding this comment

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

Thanks @dextero! I should probably adjust my release workflow here a bit. I usually pull the diff straight into the CHANGELOG when assembling a release PR, and then come up with any more descriptive announcement when publishing the actual release. Going forwards I'll try write the full content of the release into the CHANGELOG and then populate the GitHub release from that.

@KodrAus
Copy link
Member

KodrAus commented Mar 20, 2024

The build failure here is unrelated; I'll fix that up separately.

@KodrAus KodrAus merged commit 9c92890 into bitflags:main Mar 20, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants