chore(release/v1.12): release 1.12.1 #661
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: Auto-lock conversations | |
| on: | |
| pull_request_target: # zizmor: ignore[dangerous-triggers] Only used to lock PRs from forks | |
| types: [closed] | |
| schedule: | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| lock-pr-on-close: | |
| if: github.event_name == 'pull_request_target' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Lock PR conversation 🔏 | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| run: | | |
| gh pr lock "$PR_URL" | |
| permissions: | |
| pull-requests: write | |
| lock-stale-issues: | |
| if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Lock stale issue conversations 🔏 | |
| uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1 | |
| with: | |
| issue-inactive-days: 14 | |
| add-issue-labels: 'frozen-due-to-age' | |
| process-only: 'issues' | |
| permissions: | |
| issues: write |