Skip to content

fix(ci): skip release-draft update on pull_request events#169

Merged
phmatray merged 1 commit into
devfrom
fix/release-drafter-on-dev
Jun 2, 2026
Merged

fix(ci): skip release-draft update on pull_request events#169
phmatray merged 1 commit into
devfrom
fix/release-drafter-on-dev

Conversation

@phmatray
Copy link
Copy Markdown
Contributor

@phmatray phmatray commented Jun 2, 2026

Summary

Brings the Release Drafter target_commitish fix to dev. Gates the update_release_draft job with if: github.event_name == 'push' so it no longer fails on every PR with "Validation Failed: target_commitish", while keeping the pull_request trigger so the autolabeler can be enabled later.

This is the focused workflow-only change from #161 (that PR was based on a stale main and carried ~14k lines of unrelated commits, so it was not suitable to merge into dev directly).

Test plan

  • Single-file change to .github/workflows/release-drafter.yml; takes effect on the next push/PR.

🤖 Generated with Claude Code

Release Drafter fails on every PR with "Validation Failed: target_commitish"
because it tries to use refs/pull/NNN/merge as the release target. Gate the
update_release_draft job with `if: github.event_name == 'push'` so it only runs
on pushes to the default branch, while keeping the pull_request trigger so the
autolabeler can be enabled later.

Cherry-picks only the workflow fix from #161 (which was based on a stale main
and carried unrelated changes).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@phmatray phmatray merged commit 31b8032 into dev Jun 2, 2026
1 check passed
@phmatray phmatray deleted the fix/release-drafter-on-dev branch June 2, 2026 12:26
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.

1 participant