-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to mark stale issues and PRs. (#1437)
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
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.' |