Update clean_stale_pr.yaml
This commit is contained in:
parent
6930c750a7
commit
694c00d45f
1 changed files with 11 additions and 3 deletions
14
.github/workflows/clean_stale_pr.yaml
vendored
14
.github/workflows/clean_stale_pr.yaml
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
name: clean | remove stale PRs
|
name: clean | remove stale PRs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Run this action periodically (daily at 0:00 UTC in this example).
|
# Run this action periodically (daily at 0:00 UTC).
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
# Optionally, also run when pull requests are labeled, unlabeled, synchronized, or reopened
|
# Optionally, also run when pull requests are labeled, unlabeled, synchronized, or reopened
|
||||||
|
|
@ -13,7 +13,10 @@ jobs:
|
||||||
stale:
|
stale:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Mark and Close Stale
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Mark and Close Stale PRs
|
||||||
uses: actions/stale@v6
|
uses: actions/stale@v6
|
||||||
with:
|
with:
|
||||||
# Number of days of inactivity before the pull request is marked stale
|
# Number of days of inactivity before the pull request is marked stale
|
||||||
|
|
@ -21,4 +24,9 @@ jobs:
|
||||||
# Number of days of inactivity after being marked stale before the pull request is closed
|
# Number of days of inactivity after being marked stale before the pull request is closed
|
||||||
days-before-close: 7
|
days-before-close: 7
|
||||||
# Comment to post when marking as stale
|
# Comment to post when marking as stale
|
||||||
stale-pr-message: "This pull request has been automatically marke
|
stale-pr-message: "This pull request has been automatically marked as stale due to inactivity. It will be closed in 7 days if no further activity occurs."
|
||||||
|
# Comment to post when closing a stale pull request
|
||||||
|
close-pr-message: "This pull request has been closed due to prolonged inactivity."
|
||||||
|
# Labels for stale and closed PRs
|
||||||
|
stale-pr-label: "stale"
|
||||||
|
exempt-pr-labels: "keep-open"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue