Skip to content

ci: bump release-drafter to v7.3.0 and drop pull_request trigger#18

Merged
amcheste merged 1 commit into
developfrom
chore/release-drafter-v7
May 12, 2026
Merged

ci: bump release-drafter to v7.3.0 and drop pull_request trigger#18
amcheste merged 1 commit into
developfrom
chore/release-drafter-v7

Conversation

@amcheste-ai-agent
Copy link
Copy Markdown
Contributor

Fixes the failure that closed dependabot #14.

Root cause

release-drafter v7 changed how target_commitish is resolved on pull_request events. In v6, the action defaulted to the configured branch; in v7 it passes GITHUB_REF through unchanged. On a PR event, GITHUB_REF is refs/pull/N/merge — which the GitHub Releases API rejects as a target_commitish value (must be a branch name or commit SHA).

Failure log from #14:

targetCommitish: refs/pull/14/merge
##[error]Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}

Two changes in one PR

  1. Remove pull_request: from on:. release-drafter v7 split autolabeling into a separate action (release-drafter/release-drafter/autolabeler@v7). The drafter step only needs push events on develop/main to keep the draft current — pull_request was load-bearing only for the (now-removed) bundled autolabel feature.

  2. Pin to v7.3.0, not v7.2.1. v7.3.0 is the latest at the time of writing; dependabot's chore: bump release-drafter/release-drafter from 6.4.0 to 7.2.1 #14 was bumping to an older snapshot.

Follow-up

The same workflow shape lives in repo-template — a mirror PR will follow there so future-spawned repos don't inherit the bug.

Dependabot bumped release-drafter from v6 to v7.2.1 in #14, but the
update failed CI. Root cause: v7 changed how target_commitish is
resolved on pull_request events. v6 fell back to the default branch;
v7 passes GITHUB_REF through unchanged, which on a PR event is
refs/pull/N/merge. The GitHub Releases API rejects that — target
must be a branch name or commit SHA.

Two cleanups in one:

1. Remove pull_request from the on: block. release-drafter v7 moved
   autolabeling into a separate action (release-drafter/release-drafter/autolabeler).
   The drafter step itself only needs push events to develop/main to
   keep the draft current.

2. Pin to v7.3.0 (latest), not v7.2.1 (dependabot's stale snapshot).

Closes the loop that #14 opened. Future dependabot bumps inside the
v7 line will be clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: amcheste <13696614+amcheste@users.noreply.github.com>
@amcheste amcheste merged commit c01deb7 into develop May 12, 2026
5 checks passed
@amcheste amcheste deleted the chore/release-drafter-v7 branch May 12, 2026 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants