Add stale/lock bots

This commit is contained in:
Otto winter 2021-10-29 13:16:19 +02:00
parent 1d3e589722
commit 528ef7655e
No known key found for this signature in database
GPG Key ID: 48ED2DDB96D7682C
2 changed files with 65 additions and 0 deletions

27
.github/workflows/lock.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Lock
on:
schedule:
- cron: '30 0 * * *'
workflow_dispatch:
permissions:
issues: write
pull-requests: write
concurrency:
group: lock
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v3
with:
pr-lock-inactive-days: "7"
pr-lock-reason: ""
exclude-any-pr-labels: keep-open
issue-lock-inactive-days: "7"
issue-lock-reason: ""
exclude-any-issue-labels: keep-open

38
.github/workflows/stale.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: Stale
on:
schedule:
- cron: '30 0 * * *'
workflow_dispatch:
permissions:
issues: write
pull-requests: write
concurrency:
group: lock
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
days-before-pr-stale: 90
days-before-pr-close: 7
days-before-issue-stale: 90
days-before-issue-close: 7
remove-stale-when-updated: true
stale-pr-label: "stale"
exempt-pr-labels: "no-stale"
stale-issue-label: "stale"
exempt-issue-labels: "no-stale"
stale-pr-message: >
There hasn't been any activity on this pull request recently. This
pull request has been automatically marked as stale because of that
and will be closed if no further activity occurs within 7 days.
Thank you for your contributions.
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.