Skip to content

Commit ea9738c

Browse files
committed
Fix workflow file by lifting permissions to the job
1 parent 88df626 commit ea9738c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/close-feature-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
name: 🚪 Check Feature PR
1414
if: github.repository == 'remix-run/react-router' && github.event.label.name == 'feature-request'
1515
runs-on: ubuntu-latest
16+
permissions:
17+
pull-requests: write
1618
steps:
1719
- name: ⬇️ Checkout repo
1820
uses: actions/checkout@v4
1921

2022
- name: 🚪 Close PR
2123
env:
2224
GH_TOKEN: ${{ github.token }}
23-
permissions:
24-
pull-requests: write
2525
run: |
2626
gh pr comment ${{ github.event.pull_request.number }} -F ./scripts/close-feature-pr.md
2727
gh pr edit ${{ github.event.pull_request.number }} --remove-label ${{ github.event.label.name }}

0 commit comments

Comments
 (0)