Skip to content

Commit b50e7f5

Browse files
authored
Add debug-event job to copilot-review workflow (#1592)
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.
1 parent deef216 commit b50e7f5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/copilot-review.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ permissions:
88
pull-requests: write
99

1010
jobs:
11+
debug-event:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Print gate inputs
15+
run: |
16+
echo "action=${{ github.event.action }}"
17+
echo "draft=${{ github.event.pull_request.draft }}"
18+
echo "assoc=${{ github.event.pull_request.author_association }}"
19+
echo "user=${{ github.event.pull_request.user.login }}"
20+
echo "head_repo=${{ github.event.pull_request.head.repo.full_name }}"
21+
echo "base_repo=${{ github.event.pull_request.base.repo.full_name }}"
22+
1123
request-copilot-review:
1224
if: >-
1325
github.event.pull_request.draft == false &&

0 commit comments

Comments
 (0)