Mark stale issues and pull requests #588
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: '17 23 * * *' | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@v3 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-issue-message: 'Stale issue message' | |
stale-pr-message: 'Stale pull request message' | |
stale-issue-label: 'no-issue-activity' | |
stale-pr-label: 'no-pr-activity' | |
days-before-stale: 365 # optional, default is 60 | |
# The number of days old a pull request can be before marking it stale. Set to -1 to never mark pull requests as stale automatically. Override "days-before-stale" option regarding only the pull requests. | |
days-before-pr-stale: 365 # optional | |
# The labels that mean an issue is exempt from being marked stale. Separate multiple labels with commas (eg. "label1,label2"). | |
exempt-issue-labels: "WIP,Planned,Bug,bug" # optional, default is | |
# The labels that mean a pull request is exempt from being marked as stale. Separate multiple labels with commas (eg. "label1,label2"). | |
exempt-pr-labels: "WIP,FIX,Bug" | |
# The assignees which exempt an issue or a pull request from being marked as stale. Separate multiple assignees with commas (eg. "user1,user2"). | |
# exempt-assignees: # optional, default is | |
exempt-draft-pr: true # optional, default is false | |
# Display some statistics at the end regarding the stale workflow (only when the logs are enabled). |