Skip to content

fix(ci): drop release-drafter PR trigger, finish v7 migration - #14

Merged
trevex merged 1 commit into
mainfrom
fix/release-drafter-v7-migration
Jul 29, 2026
Merged

fix(ci): drop release-drafter PR trigger, finish v7 migration#14
trevex merged 1 commit into
mainfrom
fix/release-drafter-v7-migration

Conversation

@Perseus985

Copy link
Copy Markdown
Contributor

release-drafter v7 split the action in two: the root action only drafts releases, and the autolabeler moved to a separate sub-action. The workflow still carried the v5/v6 layout, where one action did both and the pull_request trigger existed solely for the autolabeler, per its own comment.

Under v7 that trigger autolabelled nothing and instead re-ran the drafter, which tries to create the draft release. Harmless on same-repo PRs, but PRs from forks get a read-only GITHUB_TOKEN regardless of the permissions block:

Creating new release...
Error: Resource not accessible by integration

Drop the pull_request trigger. The draft release is built from the commits on main, so push is the only event it ever needed. Restoring autolabelling would have required pull_request_target to get a writable token on fork PRs, which is not worth it here: the labels feed only the changelog section headings and do not affect version resolution at all, and the same information is already in the conventional-commit title prefix that conventional-commits.yml enforces. Categories stay in place for labels applied by hand, and sort-by: title now groups entries by their conventional-commit prefix as a stand-in for the section headings, descending so that fix and feat sort above docs and chore.

Also migrate .github/release-drafter.yml off the fields v7 deprecates, which were emitting seven warnings per run: categories[*].labels moves into when, exclude-labels becomes a pre-exclude category, and version-resolver becomes version-resolver categories carrying semver-increment. Version resolution is unchanged - nothing matching still falls back to patch.

release-drafter v7 split the action in two: the root action only drafts
releases, and the autolabeler moved to a separate sub-action. The workflow
still carried the v5/v6 layout, where one action did both and the pull_request
trigger existed solely for the autolabeler, per its own comment.

Under v7 that trigger autolabelled nothing and instead re-ran the drafter,
which tries to create the draft release. Harmless on same-repo PRs, but PRs
from forks get a read-only GITHUB_TOKEN regardless of the permissions block:

    Creating new release...
    Error: Resource not accessible by integration

Drop the pull_request trigger. The draft release is built from the commits on
main, so push is the only event it ever needed. Restoring autolabelling would
have required pull_request_target to get a writable token on fork PRs, which is
not worth it here: the labels feed only the changelog section headings and do
not affect version resolution at all, and the same information is already in
the conventional-commit title prefix that conventional-commits.yml enforces.
Categories stay in place for labels applied by hand, and sort-by: title now
groups entries by their conventional-commit prefix as a stand-in for the
section headings, descending so that fix and feat sort above docs and chore.

Also migrate .github/release-drafter.yml off the fields v7 deprecates, which
were emitting seven warnings per run: categories[*].labels moves into when,
exclude-labels becomes a pre-exclude category, and version-resolver becomes
version-resolver categories carrying semver-increment. Version resolution is
unchanged - nothing matching still falls back to patch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: Kevin Stellmacher <dev@stellmacher.xyz>
@trevex
trevex merged commit 1787643 into main Jul 29, 2026
12 checks passed
@Perseus985
Perseus985 deleted the fix/release-drafter-v7-migration branch July 29, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants