Skip to content

Commit

Permalink
workflows: Add workflow to close stale PRs
Browse files Browse the repository at this point in the history
We have a small number of old PRs that look to be stale,
so we can implement an auto-comment-then-close action
on these.

The initial settings for this are to
- Mark all the PRs that have no activity for more than 90 days as stale.
- If there's no activity on the PR for 7 days, the PR will be
automatically closed.

Signed-off-by: stevenhorsman <[email protected]>
  • Loading branch information
stevenhorsman committed Nov 27, 2024
1 parent eeee2b1 commit 1ec71f6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Automatically close stale PRs'
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
stale:
runs-on: ubuntu-24.04
steps:
- uses: actions/stale@v9
with:
stale-pr-message: 'This PR has been opened without with no activity for 90 days. Comment on the issue otherwise it will be closed in 7 days'
days-before-pr-stale: 90
days-before-pr-close: 7
days-before-issue-stale: -1
days-before-issue-close: -1

0 comments on commit 1ec71f6

Please sign in to comment.