Skip to content

Issues Lock

Issues Lock #132

Workflow file for this run

name: 'Issues Lock'
on:
workflow_dispatch:
inputs:
job_id:
description: 'Job ID'
required: true
default: 'all'
schedule:
- cron: '15 15 */5 * *'
permissions:
issues: write
pull-requests: write
discussions: write
concurrency:
group: lock
jobs:
# Lock Threads - https://github.com/dakanji/lock-threads
lock:
name: Lock Threads
runs-on: ubuntu-24.04
if: github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock'
steps:
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Resolved issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
issue-inactive-days: '1'
include-any-issue-labels: 'Resolved'
remove-issue-labels: 'Triage, Stale, Tagged, Queries, Unresolved, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/dakanji/RefindPlus/discussions) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Invalid/Not-Planned Issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
issue-inactive-days: '2'
include-any-issue-labels: 'Invalid, Not-Planned'
remove-issue-labels: 'Stale, Tagged, Queries, Unresolved, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/dakanji/RefindPlus/discussions) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Misc Issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
add-issue-labels: ''
issue-inactive-days: '2'
include-any-issue-labels: 'Duplicate, Cannot-Replicate, Cancelled'
remove-issue-labels: 'Stale, Tagged, Queries, Unresolved, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/dakanji/RefindPlus/discussions) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Incomplete/Abandoned Issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
add-issue-labels: 'Abandoned'
issue-inactive-days: '4'
include-any-issue-labels: 'Stale, Incomplete'
remove-issue-labels: 'Stale, Tagged, Queries, Uncertain, Accepted'
issue-comment: |-
This item is being locked.
Trigger: Apparent Abandonment.
process-only: 'issues'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Unclear Issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
issue-inactive-days: '7'
include-any-issue-labels: 'Unclear'
remove-issue-labels: 'Stale, Tagged, Queries, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/dakanji/RefindPlus/discussions) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Inactive Issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
add-issue-labels: 'Resolved'
issue-inactive-days: '3'
include-any-issue-labels: ''
exclude-any-issue-labels: 'Triage, Unclear, Parked, Prorogued, Help-Wanted, Acknowledged, Known-Issue'
remove-issue-labels: 'Stale, Tagged, Queries, Unresolved, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/dakanji/RefindPlus/discussions) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Acknowledged/Known Issues
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-reason: ''
add-issue-labels: ''
issue-inactive-days: '40'
include-any-issue-labels: 'Acknowledged, Known-Issue'
remove-issue-labels: 'Stale, Tagged, Queries, Uncertain, Accepted'
issue-comment: |-
This thread is being locked.
Please use the [Discussions Feature](https://github.com/dakanji/RefindPlus/discussions) for follow-on discussion or raise a new issue if appropriate.
process-only: 'issues'
- name: PreStep-Pause
run: |
sleep 128s
- name: Lock Declined Pull Requests
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pr-lock-reason: ''
pr-inactive-days: '2'
include-any-pr-labels: 'Declined'
remove-pr-labels: 'Tagged'
process-only: 'prs'