Skip to content

Commit

Permalink
Merge pull request #27 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 bb9fe44 + 281d58c commit 465094e
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 @@ -10,7 +10,7 @@ def extract_pr_body(self, commit_sha: str) -> str:
prDetails = subprocess.check_output(f'gh pr list --json body --state merged --search {commit_sha}', shell=True, text=True)
except subprocess.CalledProcessError as e:
raise Exception(f'Failed to retrieve PR body! {e.stderr}')
prDetailsJson = json.loads(prDetails, strict=False)
prDetailsJson = json.loads(prDetails)
print(prDetailsJson)
return prDetailsJson[0]['body'] if len(prDetailsJson) != 0 else ''

Expand Down

0 comments on commit 465094e

Please sign in to comment.