Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 Update docs and include permissions for pull-request: write #29

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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