Skip to content

Commit

Permalink
Add stale PRs action (#10603)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Mason <andrew@planetscale.com>
  • Loading branch information
Andrew Mason committed Jun 28, 2022
1 parent 24cd8dc commit be8a2e2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/close_stale_pull_requests.yml
@@ -0,0 +1,26 @@
name: close_stale_pull_requests
on:
schedule:
- cron: '0 1 * * *'

permissions:
pull-requests: write

jobs:
close_stale_pull_requests:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v5
with:
days-before-stale: 30
# Do not handle issues at all. We only want to handle PRs.
days-before-issue-stale: -1

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 7 days."
close-pr-message: "This PR was closed because it has been stale for 7 days with no activity."

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# (TODO:ajm188) - remove these after testing/validating the workflow.
debug-only: true
enable-statistics: true

0 comments on commit be8a2e2

Please sign in to comment.