From 8c8cadcf9d3ca0458bf82797b9e855f948795cf4 Mon Sep 17 00:00:00 2001 From: prql-bot <107324867+prql-bot@users.noreply.github.com> Date: Sat, 28 Mar 2026 21:23:11 +0000 Subject: [PATCH] ci: remove automerge job from pull-request-target workflow Branch protection rules now provide merge gating, making the automerge job redundant. Removing it ensures bot PRs (from prql-bot, dependabot, pre-commit-ci) go through the same review process as all other PRs. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/pull-request-target.yaml | 33 ---------------------- 1 file changed, 33 deletions(-) diff --git a/.github/workflows/pull-request-target.yaml b/.github/workflows/pull-request-target.yaml index c6dac142742e..08fa1e4f0ef4 100644 --- a/.github/workflows/pull-request-target.yaml +++ b/.github/workflows/pull-request-target.yaml @@ -67,36 +67,3 @@ jobs: # We only use `web` atm label_pattern: "^pr-backport-(?([^ ]+))$" title_template: "chore: Backport #<%= number%> to `web`" - - automerge: - runs-on: ubuntu-24.04 - - permissions: - pull-requests: write - contents: write - - # Check it's not coming from a fork — both to save running and - # in case someone spoofed an `actor` name. - if: ${{ !github.event.pull_request.head.repo.fork }} - - steps: - # Get number of commits in the PR - - id: commit-count - run: > - echo "commit-count=$(curl -s -H 'Authorization: token ${{ github.token - }}' https://api.github.com/repos/prql/prql/pulls/${{ - github.event.pull_request.number }}/commits | jq 'length')" - >>"$GITHUB_OUTPUT" - - if: - # - It's dependabot - # - 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]' || - (steps.commit-count.outputs.commit-count == '1' && (github.actor == - 'prql-bot' || github.actor == 'pre-commit-ci[bot]')) - run: - gh pr merge --auto --squash --delete-branch ${{ - github.event.pull_request.html_url }} - env: - GITHUB_TOKEN: ${{ secrets.PRQL_BOT_GITHUB_TOKEN }}