mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
Instead of looking for a comment that contains our signature string, require that it startswith that string. (#22047)
This commit is contained in:
parent
2754ce1987
commit
7398afcc9a
1 changed files with 2 additions and 1 deletions
3
.github/scripts/gh_comment.sh
vendored
3
.github/scripts/gh_comment.sh
vendored
|
|
@ -16,7 +16,8 @@ function update_or_create_comment {
|
|||
-H "Accept: application/vnd.github+json" \
|
||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||
--paginate \
|
||||
/repos/hashicorp/"$REPO"/issues/"$PR_NUMBER"/comments | jq -r --arg SEARCH_KEY "$SEARCH_KEY" '.[] | select (.body | contains($SEARCH_KEY)) | .id')
|
||||
/repos/hashicorp/"$REPO"/issues/"$PR_NUMBER"/comments |
|
||||
jq -r --arg SEARCH_KEY "$SEARCH_KEY" '.[] | select (.body | startswith($SEARCH_KEY)) | .id')
|
||||
|
||||
if [[ "$comment_id" != "" ]]; then
|
||||
# update the comment with the new body
|
||||
|
|
|
|||
Loading…
Reference in a new issue