From 4638d0645739f1509fdf460af5fca69e7be188d8 Mon Sep 17 00:00:00 2001 From: Bryce Boe Date: Sun, 26 Jul 2026 09:25:05 -0700 Subject: [PATCH] Correct the auto-merge token rationale comment The previous comment claimed GITHUB_TOKEN is unavailable to reusable workflows, which is not true. The actual reason the app token is reused is that branch protection on main restricts pushes to the praw-dev-automation app, so github-actions[bot] cannot complete the merge. --- .github/workflows/pre-commit_autoupdate.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit_autoupdate.yml b/.github/workflows/pre-commit_autoupdate.yml index 5d1cac6..80057eb 100644 --- a/.github/workflows/pre-commit_autoupdate.yml +++ b/.github/workflows/pre-commit_autoupdate.yml @@ -38,7 +38,9 @@ jobs: token: ${{ steps.app-token.outputs.token }} - name: Enable auto-merge # Queues the PR to merge once the required checks pass. The app token is - # reused because GITHUB_TOKEN is not available to this reusable workflow. + # reused rather than GITHUB_TOKEN because branch protection on main + # restricts pushes to the praw-dev-automation app; github-actions[bot] is + # not on that allowlist and so cannot complete the merge. if: steps.create-pull-request.outputs.pull-request-number env: GH_TOKEN: ${{ steps.app-token.outputs.token }}