Skip to content

Commit

Permalink
Merge pull request #26 from LukaszSielski/extract_commons
Browse files Browse the repository at this point in the history
test
  • Loading branch information
LukaszSielski authored Sep 19, 2024
2 parents aba3b10 + 9f66f2c commit bb9fe44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gh_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def extract_pr_body(self, commit_sha: str) -> str:
raise Exception(f'Failed to retrieve PR body! {e.stderr}')
prDetailsJson = json.loads(prDetails, strict=False)
print(prDetailsJson)
return prDetailsJson[0]['body'] if len(prDetailsJson) == 0 else ''
return prDetailsJson[0]['body'] if len(prDetailsJson) != 0 else ''

def extract_data_from_pr_body(self, commit_sha: str, pattern: re.Pattern) -> list[str]:
print(self.extract_pr_body(commit_sha))
Expand Down

0 comments on commit bb9fe44

Please sign in to comment.