Skip to content

Commit

Permalink
Add Stale Issue / PR GitHub Action (#1617)
Browse files Browse the repository at this point in the history
- Starting with high values because we have not had this before
- Initial values should be 300 days => stale and 30 days => close
  • Loading branch information
MSNev authored Jul 30, 2021
1 parent 73c6191 commit 52b00fd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Stale issue handler'
on:
workflow_dispatch:
schedule:
- cron: '0 7 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4.0.0
id: stale
with:
stale-issue-message: 'This Issue will be closed in 30 days. Please remove the "Stale" label or comment to avoid closure with no action.'
stale-pr-message: 'This PR will be closed in 30 days. Please remove the "Stale" label or comment to avoid closure with no action.'
days-before-stale: 300
days-before-close: 30
stale-issue-label: 'stale'
stale-pr-label: 'stale'
close-issue-label: 'closed'
close-pr-label: 'closed'
exempt-issue-labels: 'bug,enhancement,documentation,waiting,keep'
exempt-all-milestones: true
exempt-all-assignees: true
- name: Print outputs
run: echo ${{ join(steps.stale.outputs.*, ',') }}

0 comments on commit 52b00fd

Please sign in to comment.