Skip to content

Commit 66ab9e6

Browse files
aaronpowellCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 1d5c75f commit 66ab9e6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/contributor-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ jobs:
194194
marker="<!-- agt-contributor-check -->"
195195
comment_id=$(
196196
gh api "repos/${{ github.repository }}/issues/$number/comments" --paginate \
197-
--jq ".[] | select(.user.login == \"github-actions[bot]\" and (.body | contains(\"$marker\"))) | .id" \
197+
--arg marker "$marker" \
198+
--jq '.[] | select(.user.login == "github-actions[bot]" and (.body | contains($marker))) | .id' \
198199
| head -n 1
199200
)
200201

0 commit comments

Comments
 (0)