-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INT-3259: Added github action for labeling and closing stale issues
- Loading branch information
1 parent
8e844d2
commit 9149d7b
Showing
1 changed file
with
26 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,26 @@ | ||
name: "Stale" | ||
|
||
# This uses Github actions minutes. To learn more: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 1 * *" | ||
|
||
jobs: | ||
stale: | ||
name: Close stale issues | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# contents: write # only for delete-branch option | ||
issues: write | ||
# pull-requests: write # only makes issues stale, not PRs | ||
|
||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
stale-issue-message: 'This issue is stale because it has been open for 7 days with no activity. Respond with a comment or this will be closed in 7 days.' | ||
days-before-stale: 30 # Days before an issue becomes stale | ||
days-before-close: 7 # Days before an issue with no activity after begin labelled "stale" is closed | ||
any-of-labels: 'needs: more info' | ||
labels-to-remove-when-unstale: 'needs: more info' | ||
|