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

Create release.yml file for automatic release notes generation #95

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

EwoutH
Copy link
Member

@EwoutH EwoutH commented Sep 2, 2024

Adds a configuration file .github/release.yml that lets GitHub automatically draft release notes based on the labels attached to PRs that will be included in that release. These drafted release notes can form a consistent basis for our changelog and manually expanded with context for certain PRs if needed.

The currently proposed labels are experimental, breaking, feature, enhancement, bug, docs, ci, testing, dependency, maintenance and packaging. The last five are grouped in the changelog under Maintenance 🔧.

For this to work nicely, it's important that all merged PRs have one of these labels attached to them and that the PR titles are sufficiently descriptive.

Adds a configuration file `.github/release.yml` that lets GitHub automatically draft release notes based on the labels attached to PRs that will be included in that release. These drafted release notes can form a consistent basis for our changelog and manually expanded with context for certain PRs if needed.

The currently proposed labels are `experimental`, `breaking`, `feature`, `enhancement`, `bug`, `docs`, `ci`, `testing`, `dependency`, `maintenance` and `packaging`. The last five are grouped in the changelog under _Maintenance 🔧_.

See [Automatically generated release notes](https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes).
Copy link

codecov bot commented Sep 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@73a5024). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #95   +/-   ##
=======================================
  Coverage        ?   91.19%           
=======================================
  Files           ?       14           
  Lines           ?     2193           
  Branches        ?        0           
=======================================
  Hits            ?     2000           
  Misses          ?      193           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@adamamer20 adamamer20 self-requested a review September 2, 2024 13:16
@adamamer20
Copy link
Collaborator

Wonderful, I wanted to add that! Thanks @EwoutH!

@adamamer20 adamamer20 merged commit 75fc38d into projectmesa:main Sep 2, 2024
7 checks passed
@adamamer20
Copy link
Collaborator

@EwoutH Can a PR have 2 different labels (eg. docs and bugs)?

@adamamer20 adamamer20 added the enhancement Improvements to existing features or performance. label Sep 2, 2024
@EwoutH
Copy link
Member Author

EwoutH commented Sep 2, 2024

Yes, but the top one takes precedence. For example, breaking is currently at the top, so it takes precedence over all other labels.

So you can reorder them if you like another priority.

@adamamer20 adamamer20 added maintenance General maintenance tasks, code refactoring, or cleanup. ci Changes to CI configuration files and scripts. and removed maintenance General maintenance tasks, code refactoring, or cleanup. labels Sep 2, 2024
@EwoutH EwoutH added this to the 0.1.0 milestone Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Changes to CI configuration files and scripts. enhancement Improvements to existing features or performance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants