release-drafter: Error applying minor version label
Got an error when the workflow had a minor label applied

name: Draft Release
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
with:
config-name: release-template.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
categories:
- title: "๐ What's new"
labels:
- 'PR: New'
- title: '๐๏ธ Improvements'
labels:
- 'PR: Improvement'
- title: '๐ Bug Fixes'
labels:
- 'PR: Fix'
exclude-labels:
- 'PR: No Changelog'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## Release Changes
$CHANGES
I have a general question to. If we add a minor label to multiple PRs will it continuously bump the version number? Or is it only one bump per release? Thanks
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (10 by maintainers)
Just want to drop a quick note here to say that our repos that use
release-drafter/release-drafter@v5have started to get what seems to be the same error:and we are not using a โminorโ label, so that detail is probably not central to the breakage.
I have restored things to working order in a repo by locking the version to
5.15.0so one of the two recent releases must have broken this.For those who want to use this workaround, hereโs what I did:
I changed
to
and on my next merge to my main branch all worked as expected.
(heads up @KevinBatdorf in case this helps you)
Nah, the default config ensure our code base works as expected on objects without too much conditional code logic ๐
See #1012
@KevinBatdorf if you add a major section to your version-resolver I suspect it will work.
I believe it is #973 it is not performing a deep merge of the defaults. So it should have defaulted to
version-resolver: { major: labels: [], }We only do a single increment.