Skip to content

Mark Stale issues and Pull Requests #1116

Mark Stale issues and Pull Requests

Mark Stale issues and Pull Requests #1116

Workflow file for this run

name: Mark Stale issues and Pull Requests
on:
schedule:
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v6
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'The issue labelled as stale because it has been open for more than 7 days with inactivity.'
days-before-stale: 7
days-before-close: -1
stale-issue-label: 'Stale'
exempt-issue-labels: 'Announcement,Pinned'
remove-stale-when-updated: true
- uses: actions/stale@v6
with:
# Token for the repository. Can be passed in using `{{ secrets.GITHUB_TOKEN }}`.
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'Due to inactivity this pull request has been marked as stale.'
# The message to post on the issue when closing it. If none provided, will not comment when closing an issue.
close-pr-message: 'Closing this pr due to no activity.'
# The number of days old an issue can be before marking it stale. Set to -1 to never mark issues or pull requests as stale automatically.
days-before-stale: 7
# The number of days to wait to close an issue or pull request after it being marked stale. Set to -1 to never close stale issues.
days-before-close: 7
# The label to apply when a pull request is stale.
stale-pr-label: 'Stale'
# The label to apply when a pull request is closed.
close-pr-label: 'Stale-n-closed'