Skip to content

Commit bf4ba80

Browse files
committed
ci: try fix warns on master
1 parent 9bbb9a0 commit bf4ba80

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/warn-master-pr.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,27 @@ on:
77
jobs:
88
warn-master-branch-pr:
99
name: Warn about PR targeting master branch
10-
if: github.event.pull_request.base.ref == 'master'
1110
runs-on: ubuntu-latest
1211
permissions:
1312
issues: write
1413
pull-requests: write
1514
steps:
15+
- name: Debug PR info
16+
uses: actions/github-script@v6
17+
with:
18+
github-token: ${{ secrets.GITHUB_TOKEN }}
19+
script: |
20+
console.log('=== PR DEBUG INFO ===');
21+
console.log('Base ref:', context.payload.pull_request.base.ref);
22+
console.log('Head ref:', context.payload.pull_request.head.ref);
23+
console.log('Base repo:', context.payload.pull_request.base.repo.full_name);
24+
console.log('Head repo:', context.payload.pull_request.head.repo?.full_name);
25+
console.log('PR author:', context.payload.pull_request.user.login);
26+
console.log('PR number:', context.payload.pull_request.number);
27+
console.log('=== END DEBUG ===');
28+
1629
- name: Add warning comment
30+
if: github.event.pull_request.base.ref == 'master'
1731
uses: actions/github-script@v6
1832
with:
1933
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)