mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ci: make labeler also work for breaking changes
This means that "refactor!: description" and "refactor(scope)!: description" will add the "refactor" label.
This commit is contained in:
parent
33e79237bc
commit
348787a1b7
4
.github/workflows/labeler.yml
vendored
4
.github/workflows/labeler.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
||||
- run: gh pr checkout ${{ github.event.pull_request.number }}
|
||||
|
||||
# Extract type and try to add it as a label
|
||||
- run: gh pr edit --add-label "$(echo "${{ github.event.pull_request.title }}" | sed -E 's|([[:alpha:]]+)(\(.*\))?:.*|\1|')" || true
|
||||
- run: gh pr edit --add-label "$(echo "${{ github.event.pull_request.title }}" | sed -E 's|([[:alpha:]]+)(\(.*\))?!?:.*|\1|')" || true
|
||||
|
||||
# Extract scope and try to add it as a label
|
||||
- run: gh pr edit --add-label "$(echo "${{ github.event.pull_request.title }}" | sed -E 's|[[:alpha:]]+\((.+)\):.*|\1|')" || true
|
||||
- run: gh pr edit --add-label "$(echo "${{ github.event.pull_request.title }}" | sed -E 's|[[:alpha:]]+\((.+)\)!?:.*|\1|')" || true
|
||||
|
Loading…
Reference in New Issue
Block a user