-
Notifications
You must be signed in to change notification settings - Fork 39
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
Introduce release.yml
to improve GitHub release notes generation
#213
Conversation
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.
Given this is about Error Prone WDYT about a dedicated section "New bug checkers and templates" like EP does?
Will we also create a CHANGELOG.md
?
.github/release.yml
Outdated
labels: | ||
- documentation | ||
- chores | ||
- title: ":warning: Dependency Upgrades" |
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.
Why :warning:
for dependency upgrades? I would expect that emoji for the first section on update considerations.
(I would use :broom:
or :chart_upwards:
here instead then)
Thanks for the review @ferdinand-swoboda ! 🚀
Good idea, perhaps we should have two variants,
I used this because we do the same for PSM. Will update to :chart_upwards: 😄.
Yeah I thought about this, but wasn't too sure yet. I can see why this makes sense :).
Not sure for now TBH. It's out of scope for this PR, perhaps we'll add this later. |
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.
The example looks awesome 🚀
Do we want a single enhancement label or two labels saying new feature and improvement (and perhaps add more)?
If we use refaster template and error prone check do we need new feature and improvement after all? (I think it'd be nice to keep them).
Had interesting chat offline on the topic of splitting refaster templates and error prone checks! I don't see why users would be interested in one or the other. They are technically different but have the same goal and as a user I don't really care how exactly the tool fixes my code as long as it fixes it 🤔
I think we should definitely keep Improvements
section, as there will be changes to the existing features.
Do we want the ignore-changelog label?
Generally sounds useful, especially as the release notes grow bigger.
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.
Quick skim :)
.github/release.yml
Outdated
categories: | ||
- title: ":rocket: New Error Prone checks" | ||
labels: | ||
- "error prone check" |
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.
Should this indicate the "new" aspect? Otherwise one could also apply the label to improvement PRs.
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.
Discussed this with @ibabiankou offline, will propose something new. We think we should make a split between Error Prone checks and Refaster templates.
.github/release.yml
Outdated
- "error prone check" | ||
- title: ":sunny: New Refaster templates" | ||
labels: | ||
- "refaster template" |
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.
Same question 🙃
.github/release.yml
Outdated
- title: ":sparkles: New features and improvements" | ||
labels: | ||
- "new feature" | ||
- improvement |
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.
Shall we quote all strings for consistency.
.github/release.yml
Outdated
- deprecation | ||
- title: ":bug: Bug fixes" | ||
labels: | ||
- bug |
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 would suit issues, but not PRs. Maybe add "bug fix" 🤔
.github/release.yml
Outdated
- title: ":bug: Bug fixes" | ||
labels: | ||
- bug | ||
- title: ":books: Documentation, tests and build" |
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.
- title: ":books: Documentation, tests and build" | |
- title: ":books: Documentation, test and build improvements" |
.github/release.yml
Outdated
- title: ":books: Documentation, tests and build" | ||
labels: | ||
- documentation | ||
- chores |
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.
- chores | |
- chore |
?
Updated the labels and applied suggestions! |
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.
Very nice! Suggested commit message:
Introduce `release.yml` to improve GitHub release notes generation (#213)
Made a tiny tweak, will re-generate the release notes from |
release.yml
to improve release notes generationrelease.yml
to improve GitHub release notes generation
See an overview of the labels here.
The official documentation for automated release notes on GitHub can be found here.
To verify the changes, I updated the base branch and created a tag
v0.2.1
and compared it withv0.1.0
.This was the output ⏬
What's Changed
✨ New features and improvements
@RequestAttribute
fromRequestMappingAnnotation
check by @ddeya in Exempt@RequestAttribute
fromRequestMappingAnnotation
check #189ThrowableAssertAlternative#withMessage(String, Object...)
expression by @ivan-fedorov in Rewrite anotherThrowableAssertAlternative#withMessage(String, Object...)
expression #190NestedOptionals
check by @Venorcis in IntroduceNestedOptionals
check #202ImmutablesSortedSetComparator
check by @ferdinand-swoboda in IntroduceImmutablesSortedSetComparator
check #102com.google.errorprone.matchers.Matchers
methods by @oxkitsune in Require static import ofcom.google.errorprone.matchers.Matchers
methods #201NonEmptyMono
check by @cernat-catalin in IntroduceNonEmptyMono
check #200String#valueOf
overObjects#toString
by @Stephan202 in PreferString#valueOf
overObjects#toString
#192RxJava2Adapter
Refaster templates by @Stephan202 in Fix severalRxJava2Adapter
Refaster templates #205📖 Documentation, Tests and Build
VoidMissingNullable
check by @Stephan202 in Enable Error Prone'sVoidMissingNullable
check #180StreamMapToOptionalGet
Refaster template documentation by @rickie in ImproveStreamMapToOptionalGet
Refaster template documentation #203nohttp-checkstyle
by @Stephan202 in Enablenohttp-checkstyle
#206New Contributors
@RequestAttribute
fromRequestMappingAnnotation
check #189NestedOptionals
check #202ImmutablesSortedSetComparator
check #102NonEmptyMono
check #200Full Changelog: v0.1.0...v0.2.1
Open questions:
enhancement
label or two labels sayingnew feature
andimprovement
(and perhaps add more)?refaster template
anderror prone check
do we neednew feature
andimprovement
after all? (I think it'd be nice to keep them).ignore-changelog
label?Let me know what you think!