Skip to content

Commit

Permalink
Merge pull request #386 from opencrvs/ocrvs-8300
Browse files Browse the repository at this point in the history
OCRVS-8300 Workflow added which will close PR after 30 days of inactivity
  • Loading branch information
alsmk authored Jan 30, 2025
2 parents 8bce156 + 1ca6374 commit 8b7de31
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/close-stale-prs-after-30-days.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Close stale PRs after 30 days'
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

permissions:
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-pr-message: 'This PR has been marked with label stale Since it has been inactive for 20 days. It will automatically be closed in 10 days if no further activity occurs.'
close-pr-message: 'This PR has been automatically closed because it has been inactive for 30 days. Please reopen if you are still working on it.'
days-before-pr-stale: 20
days-before-pr-close: 10

0 comments on commit 8b7de31

Please sign in to comment.