Skip to content

Commit

Permalink
Merge pull request #363 from romoh/main
Browse files Browse the repository at this point in the history
[SAME VERSION] Workflow to mark inactive issues/PRs as stale and eventually close them
  • Loading branch information
romoh committed Aug 26, 2021
2 parents 7ac4ee5 + 1972435 commit cf7895b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/stale-tasks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This is a workflow that runs periodically to mark issues/prs with no recent activity as stale, it also closes/removes label based on following activity

name: Mark and close stale issues/PRs
on:
schedule:
- cron: '0 0 * * *' # runs daily at 12:00 am UTC

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
stale-issue-label: stale
stale-pr-label: stale
days-before-stale: 45
days-before-close: 45
remove-stale-when-updated: true
stale-issue-message: >
Issue has been automatically marked as stale due to inactivity for 45 days. Update the issue to remove label, otherwise it will be automatically closed.
stale-pr-message: >
PR has been automatically marked as stale due to inactivity for 45 days. Update the PR to remove label, otherwise it will be automatically closed."
exempt-issue-labels: keep-alive
token: ${{ secrets.GITHUB_TOKEN }}
debug-only: true

0 comments on commit cf7895b

Please sign in to comment.