Skip to content

Commit

Permalink
Adding "stale" GitHub Action (GH-21247)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Mariatta and brettcannon authored Dec 15, 2020
1 parent b9ced83 commit 9cc8fa6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Mark stale pull requests

on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
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'
stale-pr-label: 'stale'
days-before-stale: 30
days-before-close: -1

0 comments on commit 9cc8fa6

Please sign in to comment.