mirror of
https://github.com/github/awesome-copilot.git
synced 2026-07-14 01:51:02 +00:00
Fix contributor check gh api marker argument error (#2151)
* Fix contributor check comment upsert behavior Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix contributor check jq marker filtering Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -194,8 +194,7 @@ jobs:
|
||||
marker="<!-- agt-contributor-check -->"
|
||||
comment_ids=$(
|
||||
gh api "repos/${{ github.repository }}/issues/$number/comments" --paginate \
|
||||
--arg marker "$marker" \
|
||||
--jq '.[] | select(.user.login == "github-actions[bot]" and ((.body // "") | contains($marker))) | .id'
|
||||
| jq -r --arg marker "$marker" '.[] | select((.user.login // "") == "github-actions[bot]" and ((.body // "") | contains($marker))) | .id'
|
||||
)
|
||||
comment_id=$(printf "%s\n" "$comment_ids" | sed -n '1p')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user