-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub Action to manage [stale] issues and PRs
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Close inactive issues and PRs | ||
on: | ||
schedule: | ||
- cron: "0 1 * * *" | ||
workflow_dispatch: | ||
jobs: | ||
close-issues: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
only-labels: "status: waiting-for-feedback" | ||
days-before-stale: 7 | ||
days-before-close: 14 | ||
stale-issue-label: "status: stale" | ||
stale-pr-label: "status: stale" | ||
stale-issue-message: > | ||
In order to proceed with this issue, please provide the requested information. | ||
This issue will be closed within the next 2 weeks if the requested information is not provided. | ||
close-issue-message: > | ||
Closing due to lack of requested feedback. | ||
In order to proceed with your issue, please provide the requested information and the issue will be re-opened. | ||
stale-pr-message: > | ||
In order to proceed with this pull request, please provide the requested information or make the requested changes. | ||
This pull request will be closed within the next 2 weeks if the information is not provided or the requested changes are not made. | ||
close-pr-message: > | ||
Closing due to lack of requested feedback. | ||
If you would like to proceed with your contribution, please provide the requested information or make the requested changes, and the pull request will be re-opened. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Label new issues | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
jobs: | ||
label_issues: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ["status: new"] | ||
}) |