Repository navigation
馃敀 Replace pre-commit PAT with PR Push #1851
Workflow file for this run
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: Labels | |
| on: | |
| pull_request_target: # zizmor: ignore[dangerous-triggers] | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| # For label-checker | |
| - labeled | |
| - unlabeled | |
| permissions: {} | |
| jobs: | |
| labeler: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/labeler@bf12e9b00b37c5c0ca2b87b79b2daf7891dbda13 # v7.0.0 | |
| if: ${{ github.event.action != 'labeled' && github.event.action != 'unlabeled' }} | |
| - run: echo "Done adding labels" | |
| # Run this after labeler applied labels | |
| check-labels: | |
| needs: | |
| - labeler | |
| permissions: | |
| pull-requests: read | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: agilepathway/label-checker@c3d16ad512e7cea5961df85ff2486bb774caf3c5 # v1.6.65 | |
| with: | |
| one_of: breaking,security,feature,bug,refactor,upgrade,docs,lang-all,internal,release | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} |