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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically create release notes #1859

Merged
merged 1 commit into from
Apr 4, 2024
Merged

Conversation

bquorning
Copy link
Collaborator

Adds a new rake task, rake create_release_notes which generates a relnotes.md file.

When CI creates and publishes a new gem version, it will now also create a release on GitHub, with the content of relnotes.md being used as release notes.


Before submitting the PR make sure the following are checked:

  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Updated documentation.
  • Added an entry to the CHANGELOG.md if the new code introduces user-observable changes.
  • The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

Adds a new rake task, `rake create_release_notes` which generates a
relnotes.md file.

When CI creates and publishes a new gem version, it will now also create
a release on GitHub, with the content of relnotes.md being used as
release notes.
@bquorning bquorning force-pushed the automatically-create-release-notes branch from b53f4fb to 30504e0 Compare April 4, 2024 11:10
@bquorning bquorning marked this pull request as ready for review April 4, 2024 11:11
@bquorning bquorning requested a review from a team as a code owner April 4, 2024 11:11
@bquorning bquorning requested review from pirj and ydah April 4, 2024 11:11
GH_TOKEN: ${{ github.token }}
run: |
bundle exec rake create_release_notes
gh release create $(git tag --points-at @) --notes-file relnotes.md
Copy link
Member

Choose a reason for hiding this comment

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

ask) Should we need to create a release version tag before this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. It’s created and pushed by line 20. And also, it should run before the git push below which would cause git tag --points-at @ to no longer return the current tag 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Thank ypu for the explanation! I understand😀

Copy link
Member

@ydah ydah left a comment

Choose a reason for hiding this comment

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

Looks good!

@ydah ydah merged commit eabbdc8 into master Apr 4, 2024
24 checks passed
@ydah ydah deleted the automatically-create-release-notes branch April 4, 2024 20:46
ydah added a commit to rubocop/rubocop-capybara that referenced this pull request Apr 8, 2024
ydah added a commit to rubocop/rubocop-factory_bot that referenced this pull request Apr 8, 2024
ydah added a commit to rubocop/rubocop-rspec_rails that referenced this pull request Apr 8, 2024
ydah added a commit to rubocop/rubocop-capybara that referenced this pull request Apr 10, 2024
ydah added a commit to rubocop/rubocop-factory_bot that referenced this pull request Apr 10, 2024
ydah added a commit to rubocop/rubocop-rspec_rails that referenced this pull request Apr 10, 2024
ydah added a commit to rubocop/rubocop-capybara that referenced this pull request Apr 11, 2024
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.

2 participants