Skip to content

Commit

Permalink
add github action to clear stale PRs (jup-ag#1529)
Browse files Browse the repository at this point in the history
  • Loading branch information
9yoi authored and vishalsinghji committed May 25, 2024
1 parent 2bb2d50 commit 0df59c8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/clear-stale-PRs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: clear-stale-PRs

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # UTC Midnight everyday

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Close Stale Issues
- uses: actions/[email protected]
with:
repo-token: ${{ secrets.PAT }}
# ====== for pr
exempt-pr-labels: pinned,security,good-first-issue,in-progress

days-before-pr-stale: 21
stale-pr-message: |
This pull request has been automatically marked as stale because it
has not had recent activity. It will be closed if no further activity
occurs - please feel free to re-open when your project has more traction.
days-before-pr-close: 7
close-pr-message: |
This pull request has not seen any activity since it was marked stale.
Closing.

0 comments on commit 0df59c8

Please sign in to comment.