Skip to content

Commit

Permalink
Add workflow to mark stale issues and PRs. (#1437)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec authored Jun 5, 2024
1 parent 28556f3 commit dc910ad
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow adds a "stale" label to issues and PRs that have had no activity
# for a specified amount of time, adding a comment to the issue or PR. It does
# not close the issue or PR.
#
# You can adjust the behaviour by modifying this file.
#
# For more information, see: https://github.com/actions/stale

name: Mark stale issues and PRs

on:
schedule:
- cron: '15 5 * * *'

jobs:
stale:
# Don't run on forks
if: github.repository == 'CQCL/tket'

runs-on: ubuntu-latest

permissions:
pull-requests: write
issues: write

steps:
- uses: actions/stale@v9
with:
days-before-issue-stale: 120
days-before-pr-stale: 30
days-before-close: -1
stale-issue-label: 'stale'
stale-pr-label: 'stale'
stale-issue-message: 'This issue has been automatically marked as stale.'
stale-pr-message: 'This pull request has been automatically marked as stale.'

0 comments on commit dc910ad

Please sign in to comment.