mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-06-27 22:35:55 +00:00
add stale issue and pr automation
This commit is contained in:
45
.github/workflows/stale.yml
vendored
Normal file
45
.github/workflows/stale.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Stale
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "30 2 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
actions: write
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Mark and close stale issues and pull requests
|
||||
uses: actions/stale@v10
|
||||
with:
|
||||
days-before-issue-stale: 180
|
||||
days-before-issue-close: 180
|
||||
days-before-pr-stale: 60
|
||||
days-before-pr-close: 30
|
||||
|
||||
stale-issue-label: stale
|
||||
stale-pr-label: stale
|
||||
exempt-issue-labels: pinned,security,roadmap,blocked,never stale
|
||||
exempt-pr-labels: pinned,security,blocked,never stale
|
||||
exempt-draft-pr: true
|
||||
|
||||
stale-issue-message: >
|
||||
This issue has been automatically marked as stale because it has
|
||||
not had recent activity. It will stay open for now; comment with
|
||||
updated details if this is still relevant.
|
||||
stale-pr-message: >
|
||||
This pull request has been automatically marked as stale because it
|
||||
has not had recent activity. It will be closed in 30 days if there
|
||||
is no further activity.
|
||||
close-pr-message: >
|
||||
This pull request was closed because it remained inactive after
|
||||
being marked stale. Feel free to reopen it or open a new pull
|
||||
request if you want to continue the work.
|
||||
|
||||
remove-stale-when-updated: true
|
||||
operations-per-run: 30
|
||||
Reference in New Issue
Block a user