aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier López <graulopezjavier@gmail.com>2022-03-25 14:30:42 -0500
committerJavier López <graulopezjavier@gmail.com>2022-03-26 07:18:00 -0500
commitca7d633eaf24fce634fc85c74985044b77ff8a71 (patch)
tree8a3b325c2f868c656114894bcb872621b87f660f
parentb438251a0edcb81ada1992157443c829960da116 (diff)
downloadrneovim-ca7d633eaf24fce634fc85c74985044b77ff8a71.tar.gz
rneovim-ca7d633eaf24fce634fc85c74985044b77ff8a71.tar.bz2
rneovim-ca7d633eaf24fce634fc85c74985044b77ff8a71.zip
ci: automatic breaking change label
When the PR title contains the breaking change format apply the breaking-change label.
-rw-r--r--.github/workflows/labeler.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index d50e0c1f92..7845ae92a3 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -30,6 +30,8 @@ jobs:
run: gh pr edit "$PR_NUMBER" --add-label "$(echo "$PR_TITLE" | sed -E 's|([[:alpha:]]+)(\(.*\))?!?:.*|\1|')" || true
- name: "Extract commit scope and add as label"
run: gh pr edit "$PR_NUMBER" --add-label "$(echo "$PR_TITLE" | sed -E 's|[[:alpha:]]+\((.+)\)!?:.*|\1|')" || true
+ - name: "Extract if the PR is a breaking change and add it as label"
+ run: gh pr edit "$PR_NUMBER" --add-label "$(echo "$PR_TITLE" | sed -E 's|[[:alpha:]]+(\(.*\))?!:.*|breaking-change|')" || true
request-reviewer:
if: github.event.pull_request.state == 'open' && github.event.pull_request.draft == false