Skip to content

Commit

Permalink
ci: automate management regarding stale PR and issues
Browse files Browse the repository at this point in the history
refs #1856
  • Loading branch information
KengoTODA authored and hazendaz committed Dec 17, 2023
1 parent b0f4b89 commit f3d85f2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ticket-management.yml
@@ -0,0 +1,26 @@
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.
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
days-before-stale: 30
days-before-close: 30
stale-pr-label: 'Stale'
stale-issue-label: 'need info'
only-issue-labels: 'need info'
exempt-all-pr-assignees: true

0 comments on commit f3d85f2

Please sign in to comment.