Skip to content

Issues Lock

Issues Lock #144

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
concurrency:
group: lock
# Lock Threads - https://github.com/dakanji/lock-threads
jobs:
lock-threads-01:
name: Lock Resolved Issues
runs-on: ubuntu-24.04
if: github.actor == 'dakanji' && (github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock')
steps:
- name: Handle Thread Lock
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.PAT_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'
lock-threads-02:
name: Lock Invalid/Not-Planned/Misc Issues
needs: [lock-threads-01]
runs-on: ubuntu-24.04
if: github.actor == 'dakanji' && (github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock')
steps:
- name: Repository Checkout
uses: actions/checkout@v4
- name: Handle Rate Limits
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Handle Thread Lock
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.PAT_TOKEN }}
issue-lock-reason: ''
issue-inactive-days: '2'
include-any-issue-labels: 'Invalid, Not-Planned, 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'
lock-threads-03:
name: Lock Incomplete/Abandoned Issues
needs: [lock-threads-02]
runs-on: ubuntu-24.04
if: github.actor == 'dakanji' && (github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock')
steps:
- name: Repository Checkout
uses: actions/checkout@v4
- name: Handle Rate Limits
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Handle Thread Lock
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.PAT_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'
lock-threads-04:
name: Lock Unclear Issues
needs: [lock-threads-03]
runs-on: ubuntu-24.04
if: github.actor == 'dakanji' && (github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock')
steps:
- name: Repository Checkout
uses: actions/checkout@v4
- name: Handle Rate Limits
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Handle Thread Lock
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.PAT_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'
lock-threads-05:
name: Lock Inactive Issues
needs: [lock-threads-04]
runs-on: ubuntu-24.04
if: github.actor == 'dakanji' && (github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock')
steps:
- name: Repository Checkout
uses: actions/checkout@v4
- name: Handle Rate Limits
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Handle Thread Lock
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.PAT_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'
lock-threads-06:
name: Lock Acknowledged/Known Issues
needs: [lock-threads-05]
runs-on: ubuntu-24.04
if: github.actor == 'dakanji' && (github.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock')
steps:
- name: Repository Checkout
uses: actions/checkout@v4
- name: Handle Rate Limits
uses: ./.github/actions/handle-rate-limits
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Handle Thread Lock
uses: dakanji/lock-threads@v5
with:
github-token: ${{ secrets.PAT_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'