8000 Adding "stale" GitHub Action (GH-21247) · python/cpython@9cc8fa6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9cc8fa6

Browse files
Adding "stale" GitHub Action (GH-21247)
Adding "stale" GitHub Action Added the "stale" GitHub action to the CPython repo. PR's older than 30 days will be labeled as stale using the "stale-pr" label. Closes python/core-workflow#372 Co-authored-by: Brett Cannon <brett@python.org>
1 parent b9ced83 commit 9cc8fa6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/stale.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Mark stale pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
stale:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/stale@v3
14+
with:
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
stale-pr-message: 'This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days'
17+
stale-pr-label: 'stale'
18+
days-before-stale: 30
19+
days-before-close: -1

0 commit comments

Comments
 (0)
0