actions: action for processing stale PRs/Issues
Mark stale PRs/Issues and close them after a period of inactivity. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
2f350dfe43
commit
183585c810
1 changed files with 20 additions and 0 deletions
20
.github/workflows/stale_issue.yml
vendored
Normal file
20
.github/workflows/stale_issue.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: "Close stale pull requests/issues"
|
||||
on:
|
||||
schedule:
|
||||
- cron: "16 00 * * *"
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v3
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-pr-message: 'This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.'
|
||||
stale-issue-message: 'This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.'
|
||||
days-before-stale: 60
|
||||
days-before-close: 14
|
||||
stale-issue-label: 'Stale'
|
||||
stale-pr-label: 'Stale PR'
|
||||
exempt-pr-labels: 'DNM,In progress'
|
||||
exempt-issue-labels: 'In progress'
|
Loading…
Add table
Add a link
Reference in a new issue