We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3debca0 commit 65188b2Copy full SHA for 65188b2
.github/workflows/enforce-draft-pr.yml
@@ -9,6 +9,9 @@ jobs:
9
name: Enforce Draft PR
10
runs-on: ubuntu-24.04
11
if: github.event.pull_request.draft == false
12
+ permissions:
13
+ pull-requests: write
14
+ contents: write
15
steps:
16
- name: Generate GitHub App token
17
id: app-token
@@ -19,7 +22,7 @@ jobs:
19
22
20
23
- name: Convert PR to draft
21
24
env:
- GH_TOKEN: ${{ steps.app-token.outputs.token }}
25
+ GH_TOKEN: ${{github.token}}
26
PR_URL: ${{ github.event.pull_request.html_url }}
27
run: |
28
gh pr ready "$PR_URL" --undo
0 commit comments