mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-06 15:58:10 +00:00
Update order of pull request checks
This commit is contained in:
@@ -112,11 +112,9 @@ def main():
|
||||
|
||||
# pprint.pprint(pull_request_changes)
|
||||
|
||||
if not pull_request_changes:
|
||||
print("No merged pull requests since the most recent tag release were found")
|
||||
return
|
||||
|
||||
# Raise error if any pull request is missing a semantic version change type.
|
||||
# Do this check before checking for any pull request changes as all the pull
|
||||
# requests changes might be missing semver labels.
|
||||
if pulls_missing_semver_label:
|
||||
error_message = (
|
||||
"Merged pull request(s) found without semantic version label:\n"
|
||||
@@ -128,6 +126,10 @@ def main():
|
||||
)
|
||||
raise Exception(error_message)
|
||||
|
||||
if not pull_request_changes:
|
||||
print("No merged pull requests since the most recent tag release were found")
|
||||
return
|
||||
|
||||
# pprint.pprint(pull_request_by_type)
|
||||
if pull_request_by_type.get("major"):
|
||||
highest_semantic_version = "major"
|
||||
|
||||
Reference in New Issue
Block a user