Skip to content

Conversation

@CybotTM
Copy link
Member

@CybotTM CybotTM commented Jan 5, 2026

Summary

  • Fix auto-merge workflow skipping dependabot/renovate PRs after someone else pushes to the branch
  • Change condition from github.actor to github.event.pull_request.user.login

Problem

The workflow was using github.actor which reflects who triggered the event, not the PR author:

  • opened event → github.actor = dependabot[bot]
  • synchronize event (after someone pushes) → github.actor = <that user>

This caused PR #14 to skip auto-merge.

Solution

Use github.event.pull_request.user.login which always reflects the original PR author.

Test plan

  • Verify existing dependabot PRs will be processed by re-triggering the workflow

The workflow was using github.actor which changes when someone
else pushes to a dependabot/renovate branch (e.g., to fix conflicts).
Using github.event.pull_request.user.login ensures we check the
actual PR author regardless of who triggered the synchronize event.
@CybotTM CybotTM merged commit 20a9c49 into master Jan 5, 2026
3 checks passed
@CybotTM CybotTM deleted the fix/auto-merge-actor-check branch January 5, 2026 14:27
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.

2 participants