Skip to content

Commit 7702fe4

Browse files
Fix auto-version bumping based on PR labels (#1586)
## Description Fixes version bumping in release drafter workflow. You can label a PR with `major`, `minor`, or `patch` to indicate which component of the version number the PR should increment (defaults to `patch` for unlabeled PRs). The release drafter will tag & name the draft release according to the maximum bumped version component of the set of PRs in the release. ## Changes - Uses the correct variable for tagging & describing the draft release - Updates some permissions in the action - [ ] I have reviewed the [Guidelines for Contributing](CONTRIBUTING.md) and the [Code of Conduct](CODE_OF_CONDUCT.md).
1 parent 471aa71 commit 7702fe4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/release-drafter.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name-template: "v$NEXT_PATCH_VERSION"
2-
tag-template: "v$NEXT_PATCH_VERSION"
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
33
change-template: "- $TITLE #$NUMBER [@$AUTHOR]"
44

55
categories:
@@ -45,8 +45,8 @@ version-resolver:
4545

4646
template: |
4747
48-
## whylogs release v$NEXT_PATCH_VERSION
49-
Hi everyone! We’ve now released whylogs $NEXT_PATCH_VERSION 🚀.
48+
## whylogs release v$RESOLVED_VERSION
49+
Hi everyone! We’ve now released whylogs $RESOLVED_VERSION 🚀.
5050
whylogs is the open standard for data and ML logging created by WhyLabs. 👩🏽‍🔬
5151
This version includes:
5252

.github/workflows/release-drafter.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ on:
66
branches:
77
- mainline
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
update_release_draft:
14+
permissions:
15+
contents: write
1116
runs-on: ubuntu-latest
1217
steps:
1318
# Drafts your next Release notes as Pull Requests are merged into "mainline"

0 commit comments

Comments
 (0)