From 64de785253ecf96bff8414ea67e1b3b0d9d2a55f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 16:00:20 +0000 Subject: [PATCH 1/2] Initial plan From eaf35e62a28f1284d602128bd6ff79b852d29b43 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 16:08:18 +0000 Subject: [PATCH 2/2] fix: re-enable automerge for Dependabot PRs when non-bot triggers pull_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> --- .github/workflows/pull-request-target.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-target.yaml b/.github/workflows/pull-request-target.yaml index c6dac142742e..fc8f39e25f5c 100644 --- a/.github/workflows/pull-request-target.yaml +++ b/.github/workflows/pull-request-target.yaml @@ -88,11 +88,14 @@ jobs: github.event.pull_request.number }}/commits | jq 'length')" >>"$GITHUB_OUTPUT" - if: - # - It's dependabot + # - It's dependabot (either actor or PR author, since a non-bot event + # can be triggered on a Dependabot PR after a recreate/rebase resets + # auto-merge) # - or there's only one commit — so nothing has made further changes and # - or it's prql-bot # - or it's a pre-commit-ci update github.actor == 'dependabot[bot]' || + github.event.pull_request.user.login == 'dependabot[bot]' || (steps.commit-count.outputs.commit-count == '1' && (github.actor == 'prql-bot' || github.actor == 'pre-commit-ci[bot]')) run: