Automated ticket management #30
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
name: 'Automated ticket management' | |
on: | |
schedule: | |
# Run the check every day. | |
# We use the release date of the first SpotBugs release, | |
# just to avoid periods of high load. | |
# https://github.com/spotbugs/spotbugs/releases/tag/3.1.0 | |
- cron: '25 10 * * *' | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
stale-pr-and-issue: | |
# Mark stale issues and PRs, then close them 30 days later. | |
if: github.repository_owner == 'spotbugs' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@v9 | |
with: | |
days-before-stale: 30 | |
days-before-close: -1 | |
stale-pr-label: 'Stale' | |
stale-issue-label: 'need info' | |
only-issue-labels: 'need info' | |
exempt-all-pr-assignees: true |