Skip to content

Commit

Permalink
Add github stale action
Browse files Browse the repository at this point in the history
  • Loading branch information
goatgoose committed Apr 12, 2023
1 parent 818a092 commit 4d09151
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/stale.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Close stale PRs
on:
schedule:
- cron: "30 1 * * *"
pull_request:
paths: [.github/workflows/stale.yml]
branches: [main]

jobs:
stale:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/stale@v8
with:
stale-pr-message: >
This PR has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
days-before-pr-stale: 60
days-before-pr-close: 7
days-before-issue-stale: -1
days-before-issue-close: -1
exempt-pr-labels: ops-backlog,status/needs_team_discussion,status/on_hold
stale-pr-label: status/stale

# Perform a dry-run if the workflow was changed in a PR
debug-only: ${{ github.event_name == 'pull_request' }}

# The github API rate limit isn't as much of a concern in debug mode. See
# https://github.com/actions/stale#debugging.
operations-per-run: ${{ github.event_name == 'pull_request' && 100 || 30 }}

0 comments on commit 4d09151

Please sign in to comment.