Skip to content

Commit

Permalink
📝 Update docs and include permissions for pull-request: write (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Sep 7, 2024
1 parent 1d39704 commit 308000e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/issue-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:

permissions:
issues: write
pull-requests: write

jobs:
issue-manager:
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Issue Manager

Automatically close issues or Pull Requests that have a **label**, after a **custom delay**, if no one replies back.
Automatically close issues or pull requests that have a **label**, after a **custom delay**, if no one replies back.

## How to use

Expand All @@ -27,6 +27,7 @@ on:

permissions:
issues: write
pull-requests: write

jobs:
issue-manager:
Expand Down Expand Up @@ -217,6 +218,7 @@ on:
permissions:
issues: write
pull-requests: write
jobs:
issue-manager:
Expand Down Expand Up @@ -286,6 +288,7 @@ on:
permissions:
issues: write
pull-requests: write
jobs:
issue-manager:
Expand Down Expand Up @@ -355,9 +358,10 @@ From the examples above you can see a section:
```yml
permissions:
issues: write
pull-requests: write
```

This is to give the GitHub Action the necessary permissions to write to the issues.
This is to give the GitHub Action the necessary permissions to write to the issues and pull requests (including removing the label).

When you add this GitHub Action to a personal repo, you might not need this specific permission.

Expand Down

0 comments on commit 308000e

Please sign in to comment.