From 4b778d3b66e233df351ff8eef1f1f41dbf345e41 Mon Sep 17 00:00:00 2001 From: Brendan Collins Date: Mon, 11 May 2026 08:01:48 -0700 Subject: [PATCH] Add debug-event job to copilot-review workflow Prints draft, author_association, and event action on every PR to diagnose why the request-copilot-review gate is evaluating to false on maintainer PRs (e.g. #1589). Remove once the gate is fixed. --- .github/workflows/copilot-review.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/copilot-review.yml b/.github/workflows/copilot-review.yml index 4ed226a2f..244a2cfa0 100644 --- a/.github/workflows/copilot-review.yml +++ b/.github/workflows/copilot-review.yml @@ -8,6 +8,18 @@ permissions: pull-requests: write jobs: + debug-event: + runs-on: ubuntu-latest + steps: + - name: Print gate inputs + run: | + echo "action=${{ github.event.action }}" + echo "draft=${{ github.event.pull_request.draft }}" + echo "assoc=${{ github.event.pull_request.author_association }}" + echo "user=${{ github.event.pull_request.user.login }}" + echo "head_repo=${{ github.event.pull_request.head.repo.full_name }}" + echo "base_repo=${{ github.event.pull_request.base.repo.full_name }}" + request-copilot-review: if: >- github.event.pull_request.draft == false &&