diff options
author | Dundar Göc <gocdundar@gmail.com> | 2021-10-13 18:57:29 +0200 |
---|---|---|
committer | Dundar Göc <gocdundar@gmail.com> | 2021-10-13 19:55:10 +0200 |
commit | 348787a1b73463484b01a5f28bbbaf44bf98769a (patch) | |
tree | 271c01d36f9cbe266cdd7c2264575903d1ac518e | |
parent | 33e79237bc003e8d6d556bf1b6a6e292bb8945e5 (diff) | |
download | rneovim-348787a1b73463484b01a5f28bbbaf44bf98769a.tar.gz rneovim-348787a1b73463484b01a5f28bbbaf44bf98769a.tar.bz2 rneovim-348787a1b73463484b01a5f28bbbaf44bf98769a.zip |
ci: make labeler also work for breaking changes
This means that
"refactor!: description"
and
"refactor(scope)!: description"
will add the "refactor" label.
-rw-r--r-- | .github/workflows/labeler.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index c7a331c657..4aa56f5d0e 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -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 |