feat: add lock and no-response workflow

This commit is contained in:
sxyazi 2023-10-26 11:34:40 +08:00
parent fc0057617e
commit ce0c38ced5
No known key found for this signature in database
3 changed files with 45 additions and 1 deletions

View File

@ -1,6 +1,6 @@
name: Feature Request name: Feature Request
description: Suggest an idea for this project description: Suggest an idea for this project
labels: [enhancement] labels: [feature]
assignees: [] assignees: []
body: body:
- type: textarea - type: textarea

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

@ -0,0 +1,28 @@
name: Lock Threads
on:
schedule:
- cron: '5 3 * * *'
workflow_dispatch:
permissions:
issues: write
pull-requests: write
concurrency:
group: lock
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v4
with:
issue-inactive-days: '30'
issue-comment: >
I'm going to lock this issue because it has been closed for _30 days_. ⏳
This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new
issue and complete the issue template so we can capture all the details
necessary to investigate further.
process-only: 'issues'

16
.github/workflows/no-response.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: No Response
on:
issue_comment:
types: [created]
schedule:
- cron: '10 * * * *'
jobs:
noResponse:
runs-on: ubuntu-latest
steps:
- uses: lee-dohm/no-response@v0.5.0
with:
token: ${{ github.token }}
responseRequiredLabel: waiting on op