Add all required repository labels, label sync workflow, and fix CI/CodeQL paths #11
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: Labeler | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| issues: | |
| types: [opened, reopened] | |
| jobs: | |
| label-pr: | |
| name: Label Pull Request | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - name: Label PR based on changed files | |
| uses: actions/labeler@v5 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| configuration-path: .github/labeler.yml | |
| label-issue: | |
| name: Label Issue | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'issues' | |
| permissions: | |
| issues: write | |
| steps: | |
| - name: Add triage label to new issues | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| await github.rest.issues.addLabels({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| labels: ['triage'] | |
| }); |