Skip to content

Commit

Permalink
Add labeler workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Morb0 committed Aug 6, 2022
1 parent 5813240 commit 1315833
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/labeler-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ on:

jobs:
remove_label:
permissions:
pull-requests: write
if: github.event.review.state == 'approved'
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: "Status: Awaiting Changes"
labels: |
Status: Needs Review
Status: Awaiting Changes
2 changes: 2 additions & 0 deletions .github/workflows/labeler-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:

jobs:
update_label:
permissions:
pull-requests: write
if: github.event.review.state == 'changes_requested'
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 1315833

Please sign in to comment.