chore: add labeler action workflow #1
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: Add Labels to PRs | |
| # NOTE: When updating this workflow, you should first change the event to `pull_request` to test the changes | |
| # in a PR, and then change it back to `pull_request_target` before merging. | |
| # @see https://github.com/actions/labeler?tab=readme-ov-file#updating-major-version-of-the-labeler | |
| on: | |
| # to change to pull_request_target before merge; needs pull_request to test in PR | |
| - pull_request | |
| jobs: | |
| add-labels: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Add labels | |
| uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1 | |
| with: | |
| sync-labels: true # Remove labels when matching files are reverted |