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 00d64dc commit db02ddb
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)
prDetailsJson = json.loads(prDetails, strict=False)
print(prDetailsJson)
return prDetailsJson[0]['body'] if len(prDetailsJson) == 0 else ''

Expand Down

0 comments on commit db02ddb

Please sign in to comment.