Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
lsielskiSii committed Sep 19, 2024
1 parent db02ddb commit 9f66f2c
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 9f66f2c

Please sign in to comment.