Skip to content

Commit 1a44fe4

Browse files
committed
Marking old PRs as stale
1 parent a89d71d commit 1a44fe4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/stale.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow warns and then closes PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see: https://github.com/actions/stale
5+
name: Mark Stale PRs
6+
7+
on:
8+
schedule:
9+
# once a day at 3:14 AM
10+
- cron: '14 3 * * *'
11+
12+
permissions:
13+
pull-requests: write
14+
15+
jobs:
16+
stale:
17+
# This workflow is not designed to make sense on forks
18+
if: github.repository == 'john-science/mazelib'
19+
runs-on: ubuntu-24.04
20+
steps:
21+
- uses: actions/stale@v8
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
stale-pr-message: "This pull request has been automatically marked as stale because it has not had any activity in the last 100 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions."
25+
stale-pr-label: "stale"
26+
days-before-pr-stale: 100
27+
days-before-pr-close: 7
28+
days-before-issue-stale: -1
29+
operations-per-run: 100

0 commit comments

Comments
 (0)