Issues Lock #141
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock' | |
steps: | |
- name: Repository Checkout | |
uses: actions/checkout@v4 | |
- id: rate-limit-check01 | |
uses: ./.github/actions/check-rate-limit | |
with: | |
token: ${{ secrets.PAT_TOKEN }} | |
- id: avoid-rate-limit-01 | |
uses: ./.github/actions/avoid-rate-limit | |
with: | |
sleep_time: ${{ steps.rate-limit-check01.outputs.sleep_time }} | |
- id: main-action-01 | |
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.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock' | |
steps: | |
- name: Repository Checkout | |
uses: actions/checkout@v4 | |
- id: rate-limit-check02 | |
uses: ./.github/actions/check-rate-limit | |
with: | |
token: ${{ secrets.PAT_TOKEN }} | |
- id: avoid-rate-limit-02 | |
uses: ./.github/actions/avoid-rate-limit | |
with: | |
sleep_time: ${{ steps.rate-limit-check02.outputs.sleep_time }} | |
- id: main-action-02 | |
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.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock' | |
steps: | |
- name: Repository Checkout | |
uses: actions/checkout@v4 | |
- id: rate-limit-check03 | |
uses: ./.github/actions/check-rate-limit | |
with: | |
token: ${{ secrets.PAT_TOKEN }} | |
- id: avoid-rate-limit-03 | |
uses: ./.github/actions/avoid-rate-limit | |
with: | |
sleep_time: ${{ steps.rate-limit-check03.outputs.sleep_time }} | |
- id: main-action-03 | |
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.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock' | |
steps: | |
- name: Repository Checkout | |
uses: actions/checkout@v4 | |
- id: rate-limit-check04 | |
uses: ./.github/actions/check-rate-limit | |
with: | |
token: ${{ secrets.PAT_TOKEN }} | |
- id: avoid-rate-limit-04 | |
uses: ./.github/actions/avoid-rate-limit | |
with: | |
sleep_time: ${{ steps.rate-limit-check04.outputs.sleep_time }} | |
- id: main-action-04 | |
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.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock' | |
steps: | |
- name: Repository Checkout | |
uses: actions/checkout@v4 | |
- id: rate-limit-check05 | |
uses: ./.github/actions/check-rate-limit | |
with: | |
token: ${{ secrets.PAT_TOKEN }} | |
- id: avoid-rate-limit-05 | |
uses: ./.github/actions/avoid-rate-limit | |
with: | |
sleep_time: ${{ steps.rate-limit-check05.outputs.sleep_time }} | |
- id: main-action-05 | |
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.event_name == 'schedule' || github.event.inputs.job_id == 'all' || github.event.inputs.job_id == 'lock' | |
steps: | |
- name: Repository Checkout | |
uses: actions/checkout@v4 | |
- id: rate-limit-check06 | |
uses: ./.github/actions/check-rate-limit | |
with: | |
token: ${{ secrets.PAT_TOKEN }} | |
- id: avoid-rate-limit-06 | |
uses: ./.github/actions/avoid-rate-limit | |
with: | |
sleep_time: ${{ steps.rate-limit-check06.outputs.sleep_time }} | |
- id: main-action-06 | |
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' |