Files
test-repo/.github/workflows/lock.yml
T

28 lines
810 B
YAML

name: "Lock"
on:
workflow_dispatch:
schedule:
# “At 00:00.” https://crontab.guru/#0_0_*_*_*
- cron: "0 0 * * *"
permissions:
issues: write
jobs:
lock:
if: github.event_name != 'schedule' || github.repository == 'prettier/prettier'
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@89ae32b08ed1a541efecbab17912962a5e38981c # v6.0.2
with:
# https://github.com/dessant/lock-threads
process-only: "issues"
# github-token: ${{ github.token }}
issue-inactive-days: "90"
# exclude-issue-created-before: ""
exclude-any-issue-labels: "keep-unlocked, status:awaiting response"
add-issue-labels: "locked-due-to-inactivity"
# issue-comment: ""
issue-lock-reason: "resolved"