Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/go-to-k/cls3 into bubble-tea
Browse files Browse the repository at this point in the history
  • Loading branch information
go-to-k committed Aug 19, 2024
2 parents bc153d3 + 6c33e57 commit d545536
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
refactor
style
perf
revert
Revert
scopes: |
deps
main
Expand All @@ -39,6 +41,8 @@ jobs:
wrapper
client
requireScope: false
ignoreLabels: |
tagpr
label:
name: Manage labels
Expand Down Expand Up @@ -76,10 +80,15 @@ jobs:
LABELS=$(gh pr view $PR_NUMBER --json labels --jq '.labels[].name')
TAGPR_LABEL=$(echo "$LABELS" | grep -qx "tagpr" && echo "true" || echo "false")
HAS_MINOR_LABEL=$(echo "$LABELS" | grep -qx "$MINOR_LABEL" && echo "true" || echo "false")
HAS_MAJOR_LABEL=$(echo "$LABELS" | grep -qx "$MAJOR_LABEL" && echo "true" || echo "false")
HAS_PATCH_LABEL=$(echo "$LABELS" | grep -qx "$PATCH_LABEL" && echo "true" || echo "false")
if [ "$TAGPR_LABEL" = "true" ]; then
exit 0
fi
if [ "$HAS_MAJOR_LABEL" = "true" ]; then
if [ "$HAS_PATCH_LABEL" = "true" ];then
gh pr edit $PR_NUMBER --remove-label "$PATCH_LABEL"
Expand Down

0 comments on commit d545536

Please sign in to comment.