fix: re-enable automerge for Dependabot PRs triggered by non-bot actors#5745
Closed
fix: re-enable automerge for Dependabot PRs triggered by non-bot actors#5745
Conversation
…l_request_target Agent-Logs-Url: https://github.com/PRQL/prql/sessions/81053eda-8f9c-4201-a186-84a5304cbdb2 Co-authored-by: snth <652285+snth@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Investigate merge conflicts for PR #5742
fix: re-enable automerge for Dependabot PRs triggered by non-bot actors
Mar 26, 2026
Member
|
Ok I will review your change later. In the meantime please tell me why I can't manually merge that PR? |
Member
|
this actually changed because I installed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
automergestep was gated solely ongithub.actor == 'dependabot[bot]', but GitHub resets auto-merge on force-push. When a human maintainer subsequently triggered apull_request_targetevent (e.g. by labeling the PR), the actor was no longerdependabot[bot], so auto-merge was never re-enabled.Change
github.event.pull_request.user.login == 'dependabot[bot]'as an additional condition, checking the PR author rather than only the event triggerer:This ensures any
pull_request_targetevent on a Dependabot PR re-enables auto-merge, regardless of who triggered it.⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.