Skip to content

ci: use PR author instead of actor for Dependabot skip#40

Merged
SebTardif merged 1 commit into
mainfrom
fix/pr-title-dependabot
May 25, 2026
Merged

ci: use PR author instead of actor for Dependabot skip#40
SebTardif merged 1 commit into
mainfrom
fix/pr-title-dependabot

Conversation

@SebTardif

Copy link
Copy Markdown
Contributor

Problem

The semantic PR title check skips Dependabot PRs using github.actor != 'dependabot[bot]'. However, github.actor changes to the maintainer when branch updates are triggered via gh pr update-branch, causing the check to run on Dependabot PRs and fail on uppercase 'Bump' in the title.

Fix

Switch to github.event.pull_request.user.login which always reflects the original PR author, regardless of who triggers synchronize events.

The semantic PR title check used github.actor to skip Dependabot PRs,
but github.actor changes to the maintainer when branch updates are
triggered via gh pr update-branch. This caused the check to run on
Dependabot PRs with the title edit event, failing on uppercase 'Bump'.

Switch to github.event.pull_request.user.login which always reflects
the original PR author regardless of who triggers synchronize events.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
@SebTardif SebTardif merged commit 41f6acd into main May 25, 2026
24 checks passed
@SebTardif SebTardif deleted the fix/pr-title-dependabot branch May 25, 2026 23:48
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