Skip to content

Commit 513482b

Browse files
committed
Adjust code review findings (string escaping)
1 parent 0063034 commit 513482b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/scripts/library-coverage/comment-pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def get_previous_run_id(repo, run_id, pr_number):
122122

123123
# Get all previous runs that match branch, repo and workflow name:
124124
output = utils.subprocess_check_output(["gh", "api", "-X", "GET", f"repos/{repo}/actions/runs", "-f", "event=pull_request", "-f", "status=success", "-f", f"branch='{pr_branch}'", "--paginate",
125-
"--jq", f"[.workflow_runs.[] | select(.head_repository.full_name==\"{pr_repo}\" and .name==\"{artifacts_workflow_name}\")] | sort_by(.id) | reverse | [.[].id]"])
125+
"--jq", f'[.workflow_runs.[] | select(.head_repository.full_name=="{pr_repo}" and .name=="{artifacts_workflow_name}")] | sort_by(.id) | reverse | [.[].id]'])
126126

127127
ids = []
128128
for l in [json.loads(l) for l in output.splitlines()]:

0 commit comments

Comments
 (0)