This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adapt issue labels and auto-stale
- Loading branch information
1 parent
1f49cdf
commit b62fa28
Showing
3 changed files
with
90 additions
and
2 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
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
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,88 @@ | ||
name: Close Inactive Issues | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" # once a day (1:30 UTC) | ||
workflow_dispatch: # allow manual trigger | ||
|
||
jobs: | ||
close-issues-in-triage: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
operations-per-run: 1000 | ||
days-before-issue-stale: 28 | ||
days-before-issue-close: 14 | ||
stale-issue-label: "stale" | ||
stale-issue-message: "This issue is stale because it has been open for 28 days with no activity." | ||
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." | ||
close-issue-reason: 'not_planned' | ||
days-before-pr-stale: -1 # ignore PRs (overwrite default days-before-stale) | ||
days-before-pr-close: -1 # ignore PRs (overwrite default days-before-close) | ||
remove-issue-stale-when-updated: true | ||
exempt-all-issue-milestones: false # issues with assigned milestones will be ignored | ||
only-label: 'triage' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
close-issues-with-assignee: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
operations-per-run: 1000 | ||
days-before-issue-stale: 28 | ||
days-before-issue-close: 7 | ||
stale-issue-label: "stale" | ||
stale-issue-message: "This issue is stale because it has been open for 28 days with no activity." | ||
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale." | ||
close-issue-reason: 'not_planned' | ||
days-before-pr-stale: -1 # ignore PRs (overwrite default days-before-stale) | ||
days-before-pr-close: -1 # ignore PRs (overwrite default days-before-close) | ||
remove-issue-stale-when-updated: true | ||
exempt-all-issue-milestones: true # issues with assigned milestones will be ignored | ||
exempt-issue-labels: bug # ignore issues labelled as bug | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
close-issues-without-assignee: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
operations-per-run: 1000 | ||
days-before-issue-stale: 14 | ||
days-before-issue-close: 7 | ||
stale-issue-label: "stale" | ||
stale-issue-message: "This issue is stale because it has been open for 14 days with no activity." | ||
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale." | ||
close-issue-reason: 'not_planned' | ||
days-before-pr-stale: -1 # ignore PRs (overwrite default days-before-stale) | ||
days-before-pr-close: -1 # ignore PRs (overwrite default days-before-close) | ||
remove-issue-stale-when-updated: true | ||
exempt-all-issue-milestones: true # issues with assigned milestones will be ignored | ||
exempt-all-issue-assignees: true # issues with assignees will be ignored | ||
exempt-issue-labels: bug # ignore issues labelled as bug | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
close-inactive-pull-requests: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
operations-per-run: 1000 | ||
days-before-issue-stale: -1 # ignore issues (overwrite default days-before-stale) | ||
days-before-issue-close: -1 # ignore issues (overwrite default days-before-close) | ||
stale-pr-label: "stale" | ||
stale-pr-message: "This pull request is stale because it has been open for 7 days with no activity." | ||
close-pr-message: "This pull request was closed because it has been inactive for 7 days since being marked as stale." | ||
days-before-pr-stale: 7 | ||
days-before-pr-close: 7 | ||
remove-pr-stale-when-updated: true | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |