Skip to content

Commit

Permalink
adds info about required pull-requests permission (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Shick <[email protected]>
  • Loading branch information
jritsema and mshick committed Nov 5, 2022
1 parent 9a19338 commit bd2c7fd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@

## Usage

Note that write access needs to be granted for the pull-requests scope.

```yaml
on:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: mshick/add-pr-comment@v2
with:
Expand All @@ -43,6 +47,8 @@ on:
jobs:
test:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: mshick/add-pr-comment@v2
env:
Expand Down Expand Up @@ -82,6 +88,8 @@ on:
jobs:
pr:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: mshick/add-pr-comment@v2
with:
Expand Down

0 comments on commit bd2c7fd

Please sign in to comment.