add stale workflow job
This commit is contained in:
parent
d2474de319
commit
7b9342a63a
|
@ -1,19 +0,0 @@
|
||||||
# Configuration for probot-stale - https://github.com/probot/stale
|
|
||||||
# Number of days of inactivity before an Issue or Pull Request becomes stale
|
|
||||||
daysUntilStale: 60
|
|
||||||
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
|
|
||||||
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
|
|
||||||
daysUntilClose: false
|
|
||||||
# Issues with these labels will never be considered stale
|
|
||||||
exemptLabels:
|
|
||||||
- pinned
|
|
||||||
- security
|
|
||||||
- roadmap
|
|
||||||
# Label to use when marking an issue as stale
|
|
||||||
staleLabel: stale
|
|
||||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
|
||||||
markComment: >
|
|
||||||
This issue has been automatically marked as stale because it has not had
|
|
||||||
recent activity.
|
|
||||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
|
||||||
closeComment: false
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
name: Close stale issues and PRs # https://github.com/actions/stale
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '30 1 * * *' # 1:30 every morning
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
stale:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/stale@v8
|
||||||
|
with:
|
||||||
|
# stale rules
|
||||||
|
days-before-stale: 60
|
||||||
|
days-before-pr-stale: 30
|
||||||
|
stale-issue-label: stale
|
||||||
|
stale-issue-message: "This issue has been automatically marked as stale because it has not had any activity for 60 days."
|
||||||
|
|
||||||
|
# close rules
|
||||||
|
# days after being marked as stale to close
|
||||||
|
days-before-close: 30
|
||||||
|
close-issue-label: closed-stale
|
||||||
|
close-issue-message: This issue has been automatically closed it has not had recent activity."
|
||||||
|
days-before-pr-close: 7
|
||||||
|
|
||||||
|
# exemptions
|
||||||
|
exempt-pr-labels: pinned,security,roadmap
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue