ci: skip milestone workflow for bot-authored PRs
The milestone action currently runs for all merged pull_request_target close events, including PRs opened by bots such as dependabot and ghostty-vouch. That causes milestone binding to run on automated PRs that should be ignored. Gate the update-milestone job so pull request events only run when the author is not a bot, while still allowing closed-issue events to run. This preserves existing issue milestone behavior and prevents bot PRs from triggering the workflow.pull/11570/head
parent
925992abd9
commit
2d2d913f80
|
|
@ -11,6 +11,9 @@ on:
|
|||
|
||||
jobs:
|
||||
update-milestone:
|
||||
# Ignore bot-authored pull requests (dependabot, app bots, etc)
|
||||
# and CI-only PRs.
|
||||
if: github.event_name == 'issues' || (github.event.pull_request.user.type != 'Bot' && !startsWith(github.event.pull_request.title, 'ci:'))
|
||||
runs-on: namespace-profile-ghostty-sm
|
||||
name: Milestone Update
|
||||
steps:
|
||||
|
|
|
|||
Loading…
Reference in New Issue