build: replace the stale app with gh-actions
The stale app is deprecated and no longer maintained
This commit is contained in:
parent
1682ce9d7c
commit
fa3257873e
2 changed files with 30 additions and 17 deletions
17
.github/stale.yml
vendored
17
.github/stale.yml
vendored
|
@ -1,17 +0,0 @@
|
||||||
# Clean up the stale issues
|
|
||||||
|
|
||||||
daysUntilStale: 30
|
|
||||||
daysUntilClose: 1
|
|
||||||
|
|
||||||
exemptLabels:
|
|
||||||
- in progress
|
|
||||||
- pending
|
|
||||||
|
|
||||||
staleLabel: stale
|
|
||||||
|
|
||||||
markComment: >
|
|
||||||
This issue has been automatically marked as stale because it has not had
|
|
||||||
recent activity. It will be closed if no further activity occurs. Thank you
|
|
||||||
for your contributions.
|
|
||||||
|
|
||||||
closeComment: false
|
|
30
.github/workflows/stale.yml
vendored
Normal file
30
.github/workflows/stale.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
name: "Close stale issues and PRs"
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *" # every day at 00:00 UTC
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
stale:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/stale@v8
|
||||||
|
with:
|
||||||
|
days-before-stale: 30
|
||||||
|
days-before-close: 1
|
||||||
|
stale-issue-label: stale
|
||||||
|
exempt-issue-milestones: pending
|
||||||
|
stale-issue-message: >
|
||||||
|
This issue has been automatically marked as stale because it has not had recent activity.
|
||||||
|
It will be closed if no further activity occurs.
|
||||||
|
Thank you for your contributions.
|
||||||
|
stale-pr-label: stale
|
||||||
|
exempt-pr-milestones: pending
|
||||||
|
stale-pr-message: >
|
||||||
|
This PR has been automatically marked as stale because it has not had recent activity.
|
||||||
|
It will be closed if no further activity occurs.
|
||||||
|
Thank you for your contributions.
|
Loading…
Reference in a new issue