mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 00:32:15 +03:00
chore: Add lock action
This commit is contained in:
parent
b3b8e2192d
commit
55a836ac82
27
.github/workflows/lock.yml
vendored
Normal file
27
.github/workflows/lock.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: "Lock Threads"
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# This runs twice a day: https://crontab.guru/#0_0,12_*_*_*
|
||||
- cron: "0 0,12 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
concurrency:
|
||||
group: lock
|
||||
|
||||
jobs:
|
||||
action:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'swc-project'
|
||||
steps:
|
||||
- uses: dessant/lock-threads@v3
|
||||
with:
|
||||
github-token: ${{ secrets.BOT_GH_TOKEN }}
|
||||
issue-inactive-days: 30
|
||||
issue-comment: "This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you."
|
||||
pr-inactive-days: 30
|
||||
log-output: true
|
Loading…
Reference in New Issue
Block a user