Skip to content

Commit 01f4750

Browse files
chore(github): Allow fix in major version bump (#1508)
chore(github): Allow fix in major version bump Co-authored-by: vianney.ruhlmann <vianney.ruhlmann@datadoghq.com>
1 parent 043015c commit 01f4750

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pr-title-semver-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ jobs:
206206
# Validation rules
207207
case "$TYPE" in
208208
fix)
209-
if [[ "$SEMVER_LEVEL" == "major" ]] || [[ "$SEMVER_LEVEL" == "minor" ]] || [[ "$SEMVER_LEVEL" == "none" ]]; then
209+
if [[ "$SEMVER_LEVEL" == "major" ]] && [[ -z "$IS_BREAKING_CHANGE" ]]; then
210+
VALIDATION_FAILED="true"
211+
elif [[ "$SEMVER_LEVEL" == "minor" ]] || [[ "$SEMVER_LEVEL" == "none" ]]; then
210212
VALIDATION_FAILED="true"
211213
fi
212214
;;

0 commit comments

Comments
 (0)