Skip to content

Commit

Permalink
Send pr autor name since that is what we use
Browse files Browse the repository at this point in the history
  • Loading branch information
ToreMerkely committed Sep 20, 2024
1 parent 923b216 commit 188b210
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/never_alone/create_never_alone_trail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function attest_commit_trail_never_alone
if [ "${never_alone_data}" != "[]" ]; then
latest_never_alone_data=$(echo "${never_alone_data}" | jq '.[-1]')
url_to_source_attestation=$(echo $latest_never_alone_data | jq -r '.html_url')
commit_author_name=$(echo "${latest_never_alone_data}" | jq -r '.user_data.commit.author.name')
pr_author_name=$(echo "${latest_never_alone_data}" | jq -r '.user_data.pullRequest.author.name')
review_decision=$(echo "${latest_never_alone_data}" | jq -r '.user_data.pullRequest.reviewDecision')
pr_url=$(echo "${latest_never_alone_data}" | jq -r '.user_data.pullRequest.url')
reviewers=$(echo "${latest_never_alone_data}" | jq -r '.user_data.pullRequest.reviews[0].author.name')
Expand All @@ -217,7 +217,7 @@ function attest_commit_trail_never_alone
--commit=${commit_sha} \
--compliant="true" \
--annotate="never_alone_data=${url_to_source_attestation}" \
--annotate="commit_author_name=${commit_author_name}" \
--annotate="pr_author_name=${pr_author_name}" \
--annotate="review_decision=${review_decision}" \
--annotate="pull_request=${pr_url}" \
--annotate="reviewers=${reviewers}"
Expand All @@ -229,7 +229,7 @@ function attest_commit_trail_never_alone
--commit=${commit_sha} \
--compliant="false" \
--annotate="never_alone_data=${url_to_source_attestation}" \
--annotate="commit_author_name=${commit_author_name}" \
--annotate="pr_author_name=${pr_author_name}" \
--annotate="review_decision=${review_decision}" \
--annotate="pull_request=${pr_url}" \
--annotate="reviewers=${reviewers}" \
Expand Down

0 comments on commit 188b210

Please sign in to comment.