Skip to content

Commit

Permalink
Create stale.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nwieters authored Aug 21, 2023
1 parent 48917cc commit cef51b7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow warns and then closes 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: '00 14 * * *'

jobs:
stale:

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

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 365
stale-before-pr-stale: -1
days-before-close: 30
days-before-pr-close: -1
stale-issue-message: 'This issue has been inactive for the last 365 days. It will now be marked as stale and closed after 30 days of further inactivity. Please add a comment to reset this automatic closing of this issue or close it if solved.'
stale-pr-message: 'This pull request has been incative for the last days.'
stale-issue-label: 'Stale'
stale-pr-label: 'no-pr-activity'

0 comments on commit cef51b7

Please sign in to comment.