Update label.yml and labeler.yml to fix breaking changes in V5 #88
Workflow file for this run
This file contains 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: "Pull Request Labeler" | |
on: | |
pull_request_target: | |
types: [opened, reopened] | |
jobs: | |
triage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Label based on changed files | |
uses: actions/labeler@v5 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
# https://github.com/actions/labeler/issues/112#issuecomment-1000491676 | |
sync-labels: '' | |
# Label based on branch name | |
- uses: actions-ecosystem/action-add-labels@v1 | |
if: startsWith(github.event.pull_request.head.ref, 'doc/') || startsWith(github.event.pull_request.head.ref, 'docs') | |
with: | |
labels: documentation | |
- uses: actions-ecosystem/action-add-labels@v1 | |
if: startsWith(github.event.pull_request.head.ref, 'docker') | |
with: | |
labels: docker | |
- uses: actions-ecosystem/action-add-labels@v1 | |
if: startsWith(github.event.pull_request.head.ref, 'maint') || startsWith(github.event.pull_request.head.ref, 'no-ci') || startsWith(github.event.pull_request.head.ref, 'ci') | |
with: | |
labels: maintenance | |
- uses: actions-ecosystem/action-add-labels@v1 | |
if: startsWith(github.event.pull_request.head.ref, 'junk') | |
with: | |
labels: ignore-for-release | |
- uses: actions-ecosystem/action-add-labels@v1 | |
if: startsWith(github.event.pull_request.head.ref, 'feat') | |
with: | |
labels: enhancement | |
- uses: actions-ecosystem/action-add-labels@v1 | |
if: startsWith(github.event.pull_request.head.ref, 'fix') || startsWith(github.event.pull_request.head.ref, 'patch') | |
with: | |
labels: bug | |
- uses: actions-ecosystem/action-add-labels@v1 | |
if: startsWith(github.event.pull_request.head.ref, 'release') | |
with: | |
labels: release | |
- uses: actions-ecosystem/action-add-labels@v1 | |
if: startsWith(github.event.pull_request.head.ref, 'breaking-change') | |
with: | |
labels: breaking-change |