Skip to content

Commit

Permalink
chore: Add lock action
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 16, 2022
1 parent b3b8e21 commit 55a836a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 55a836a

Please sign in to comment.