Skip to content

Commit

Permalink
Update clear-stale-PRs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Digitalpoundcoin authored Feb 17, 2024
1 parent c2f7925 commit f7c9a74
Showing 1 changed file with 44 additions and 21 deletions.
65 changes: 44 additions & 21 deletions .github/workflows/clear-stale-PRs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```yaml
name: clear-stale-PRs
on:
Expand All @@ -12,26 +13,48 @@ jobs:
- 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
repo-token: ${{ secrets.DIGITAL_POUND_COIN_TOKEN }}
exempt-pr-labels: pinned,security,good-first-issue,in-progress
ascending: true # gets in ascending order
stale-issue-label: "stale"
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.
operations-per-run: 250
debug-only: false # true for dry run, false to actually perform the operations
```yaml
name: clear-stale-PRs

persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- uses: actions/checkout@master
with:
ref: ${{ github.event.pull_request.head.ref }}
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # UTC Midnight everyday

ascending: true # gets in ascending order
stale-issue-label: "stale"
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.
operations-per-run: 250
debug-only: false # true for dry run, false to actually perform the operations
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Close Stale Issues
uses: actions/[email protected]
with:
repo-token: ${{ secrets.DIGITAL_POUND_COIN_TOKEN }}
exempt-pr-labels: pinned,security,good-first-issue,in-progress
ascending: true # gets in ascending order
stale-issue-label: "stale"
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.
operations-per-run: 250
debug-only: false # true for dry run, false to actually perform the operations

0 comments on commit f7c9a74

Please sign in to comment.