Skip to content

Commit

Permalink
Create stale.yml (UniversalRobots#466)
Browse files Browse the repository at this point in the history
* Create stale.yml

Mark stale issues and PRs automatically

* Automatically close stale issues, add exceptions

This gets really powerful when issues can get closed automatically. However,
adding exception labels that prevent automatic closing is rather important.

* Increase stale version to v7
  • Loading branch information
fmauch authored Jan 23, 2023
1 parent 9777868 commit 672fc16
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow warns issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '37 22 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v7
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has not been updated for a long time. If no further updates are added, this will be closed automatically. Comment on the issue to prevent automatic closing.'
stale-pr-message: 'This PR hasn't made any progress for quite some time and will be closed soon. Please comment if it is still relevant.'
stale-issue-label: 'close if no update'
exempt-issue-labels: 'bug,documentation,PR Pending,enhancement,ToDo, help wanted, waiting_for_sync'
days-before-stale: 90
days-before-close: -1
days-before-issue-close: 30
close-issue-message: 'This issue has been closed due to inactivity. Feel free to comment or reopen if this is still relevant.'
#debug-only: true
remove-stale-when-updated: true

0 comments on commit 672fc16

Please sign in to comment.