Skip to content

Commit

Permalink
Fixed returning of 0 where 1 is expected.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpojer committed Jan 7, 2025
1 parent 1e37ce9 commit 70d34ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ def run(self) -> None:
pr_body = pr_data.get("body", "")
if len(pr_body.strip()) == 0:
logger.error("Error: Pull request description is empty.")
sys.exit(0)
sys.exit(1)

# Check if release notes tag is present
if not re.search(self.title, pr_body):
logger.error("Error: Release notes title '%s' not found in pull request body.", self.title)
sys.exit(0)
sys.exit(1)

# Get line index of the release notes tag
lines = pr_body.split("\n")
Expand Down

0 comments on commit 70d34ad

Please sign in to comment.