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

Auto-bump version number in generated release notes #2140

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name-template: "$NEXT_PATCH_VERSION"
tag-template: "v$NEXT_PATCH_VERSION"
name-template: "$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
categories:
Copy link
Member Author

Choose a reason for hiding this comment

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

🗒️ This tells Release Drafter to intelligently pick the next version number, rather than always doing a patch bump.

- title: "⚠️ Breaking Changes"
label: "⚠️ Breaking"
Expand All @@ -11,7 +11,15 @@ categories:
label: "📚 Docs"
- title: "🏠 Housekeeping"
label: "🏠 Housekeeping"
version-resolver:
minor:
labels:
- "⚠️ Breaking"
- "✨ Feature"
default: patch
change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
Comment on lines +14 to +19
Copy link
Member Author

Choose a reason for hiding this comment

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

🗒️ Simple logic for determining $RESOLVED_VERSION

no-changes-template: "- No changes"
template: |
$CHANGES

**Full Changelog:** https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION