Repository navigation
Threads Lock #14
This file contains hidden or 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: 'Threads Lock' | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| job_type: | |
| description: 'Type to Lock' | |
| type: choice | |
| required: true | |
| default: 'lock-any' | |
| options: | |
| - 'lock-any' | |
| - 'lock-issues' | |
| - 'lock-discussions' | |
| - 'lock-pull-requests' | |
| schedule: | |
| - cron: '15 15 */3 * *' | |
| permissions: | |
| issues: write | |
| discussions: write | |
| pull-requests: write | |
| concurrency: | |
| group: lock | |
| # Lock Threads - https://github.com/dessant/lock-threads | |
| jobs: | |
| lock-threads-01: | |
| name: Lock Issue Threads | |
| runs-on: ubuntu-latest | |
| if: | | |
| github.repository == 'RefindPlusRepo/RefindPlus' && ( | |
| github.event_name == 'schedule' || | |
| github.event.inputs.job_type == 'lock-any' || | |
| github.event.inputs.job_type == 'lock-issues' | |
| ) | |
| steps: | |
| - id: app-token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| client-id: ${{ vars.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - name: Repository Checkout | |
| uses: actions/checkout@v6 | |
| - name: Handle Issue Rate Limits_01 | |
| uses: ./.github/actions/handle-rate-limits | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Handle Issue Thread Lock_01 | |
| uses: dessant/lock-threads@v6 | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} | |
| issue-lock-reason: '' | |
| issue-inactive-days: '1' | |
| include-any-issue-labels: 'Resolved' | |
| exclude-any-issue-labels: 'Stale' | |
| remove-issue-labels: 'Triage, No-Log, Tagged, Queries, Unresolved, Uncertain, Accepted' | |
| issue-comment: |- | |
| This thread is being locked. | |
| Please use the [Discussions Feature](https://github.com/RefindPlusRepo/RefindPlus/discussions?discussions_q=sort%3Adate_created) for follow-on discussion or raise a new issue if appropriate. | |
| process-only: 'issues' | |
| - name: Handle Issue Rate Limits_02 | |
| uses: ./.github/actions/handle-rate-limits | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Handle Issue Thread Lock_02 | |
| uses: dessant/lock-threads@v6 | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} | |
| issue-lock-reason: '' | |
| issue-inactive-days: '2' | |
| include-any-issue-labels: 'Invalid, Not-Planned, Duplicate, Cannot-Replicate, Cancelled, Config' | |
| exclude-any-issue-labels: 'Stale' | |
| remove-issue-labels: 'Tagged, Queries, Unresolved, Uncertain, Accepted' | |
| issue-comment: |- | |
| This thread is being locked. | |
| Please use the [Discussions Feature](https://github.com/RefindPlusRepo/RefindPlus/discussions?discussions_q=sort%3Adate_created) for follow-on discussion or raise a new issue if appropriate. | |
| process-only: 'issues' | |
| - name: Handle Issue Rate Limits_03 | |
| uses: ./.github/actions/handle-rate-limits | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Handle Issue Thread Lock_03 | |
| uses: dessant/lock-threads@v6 | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} | |
| issue-lock-reason: '' | |
| add-issue-labels: 'Abandoned' | |
| issue-inactive-days: '4' | |
| include-any-issue-labels: 'Stale' | |
| remove-issue-labels: 'Stale, Tagged, Queries, Uncertain, Accepted' | |
| issue-comment: |- | |
| This item is being locked. | |
| Trigger: Apparent Abandonment. | |
| process-only: 'issues' | |
| - name: Handle Issue Rate Limits_04 | |
| uses: ./.github/actions/handle-rate-limits | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Handle Issue Thread Lock_04 | |
| uses: dessant/lock-threads@v6 | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} | |
| issue-lock-reason: '' | |
| issue-inactive-days: '7' | |
| include-any-issue-labels: 'Unclear, Noted' | |
| exclude-any-issue-labels: 'Stale' | |
| remove-issue-labels: 'Tagged, Queries, Uncertain, Accepted' | |
| issue-comment: |- | |
| This thread is being locked. | |
| Please use the [Discussions Feature](https://github.com/RefindPlusRepo/RefindPlus/discussions?discussions_q=sort%3Adate_created) for follow-on discussion or raise a new issue if appropriate. | |
| process-only: 'issues' | |
| - name: Handle Issue Rate Limits_05 | |
| uses: ./.github/actions/handle-rate-limits | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Handle Issue Thread Lock_05 | |
| uses: dessant/lock-threads@v6 | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} | |
| issue-lock-reason: '' | |
| add-issue-labels: 'Resolved' | |
| issue-inactive-days: '4' | |
| include-any-issue-labels: '' | |
| exclude-any-issue-labels: 'Stale, Incomplete, Queries, Triage, Unclear, Parked, Prorogued, Help-Wanted, Confirmed, Known-Issue' | |
| remove-issue-labels: 'Tagged, Queries, Unresolved, Uncertain, Accepted' | |
| issue-comment: |- | |
| This thread is being locked. | |
| Please use the [Discussions Feature](https://github.com/RefindPlusRepo/RefindPlus/discussions?discussions_q=sort%3Adate_created) for follow-on discussion or raise a new issue if appropriate. | |
| process-only: 'issues' | |
| - name: Handle Issue Rate Limits_06 | |
| uses: ./.github/actions/handle-rate-limits | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Handle Issue Thread Lock_06 | |
| uses: dessant/lock-threads@v6 | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} | |
| issue-lock-reason: '' | |
| add-issue-labels: '' | |
| issue-inactive-days: '45' | |
| include-any-issue-labels: 'Confirmed, 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/RefindPlusRepo/RefindPlus/discussions?discussions_q=sort%3Adate_created) for follow-on discussion or raise a new issue if appropriate. | |
| process-only: 'issues' | |
| lock-threads-02: | |
| name: Lock PR Threads | |
| runs-on: ubuntu-latest | |
| if: | | |
| github.repository == 'RefindPlusRepo/RefindPlus' && ( | |
| github.event_name == 'schedule' || | |
| github.event.inputs.job_type == 'lock-any' || | |
| github.event.inputs.job_type == 'lock-pull-requests' | |
| ) | |
| steps: | |
| - id: app-token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| client-id: ${{ vars.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - name: Repository Checkout | |
| uses: actions/checkout@v6 | |
| - name: Handle PR Rate Limits_01 | |
| uses: ./.github/actions/handle-rate-limits | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Handle PR Thread Lock_01 | |
| uses: dessant/lock-threads@v6 | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} | |
| pr-lock-reason: 'resolved' | |
| add-pr-labels: '' | |
| pr-inactive-days: '2' | |
| include-any-pr-labels: 'Accepted, Declined' | |
| remove-pr-labels: '' | |
| pr-comment: '' | |
| process-only: 'prs' | |
| lock-threads-03: | |
| name: Lock Discussion Threads | |
| runs-on: ubuntu-latest | |
| if: | | |
| github.repository == 'RefindPlusRepo/RefindPlus' && ( | |
| github.event_name == 'schedule' || | |
| github.event.inputs.job_type == 'lock-any' || | |
| github.event.inputs.job_type == 'lock-discussions' | |
| ) | |
| steps: | |
| - id: app-token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| client-id: ${{ vars.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - name: Repository Checkout | |
| uses: actions/checkout@v6 | |
| - name: Handle Discussion Rate Limits_01 | |
| uses: ./.github/actions/handle-rate-limits | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Handle Discussion Thread Lock_01 | |
| uses: dessant/lock-threads@v6 | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} | |
| discussion-inactive-days: '120' | |
| exclude-discussion-created-before: '2026-07-01T00:00:00Z' | |
| include-any-discussion-labels: '' | |
| exclude-any-discussion-labels: '' | |
| process-only: 'discussions' |