Skip to content

Commit e040752

Browse files
author
Ritchie
committed
fix(ci): remove pull_request trigger from release-drafter workflow
The pull_request trigger was causing the Release Drafter action to fail with a GitHub API validation error: 'Validation Failed: target_commitish = refs/pull/N/merge is invalid' When triggered by a pull_request event, the action tries to set the release's target_commitish to refs/pull/N/merge, which GitHub rejects as an invalid ref for a release. The pull_request trigger was only needed for autolabeler support, which is not configured in this repo. Removing it fixes the recurring failures and keeps the release draft updated only on push to main (the intended behavior). Fixes: workflow runs 23369773059 and 23369768998
1 parent 7dd59c8 commit e040752

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

.github/workflows/release-drafter.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
# branches to consider in the event; optional, defaults to all
66
branches:
77
- main
8-
# pull_request event is required only for autolabeler
9-
pull_request:
10-
# Only following types are handled by the action, but one can default to all as well
11-
types: [opened, reopened, synchronize]
128
# pull_request_target event is required for autolabeler to support PRs from forks
139
# pull_request_target:
1410
# types: [opened, reopened, synchronize]

0 commit comments

Comments
 (0)