We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 768a9c4 commit 8332631Copy full SHA for 8332631
1 file changed
.github/workflows/coverage_comment.yaml
@@ -48,8 +48,16 @@ jobs:
48
exit 1
49
fi
50
51
+ # Only match comments authored by the GITHUB_TOKEN bot, so a human
52
+ # comment that happens to start with the marker doesn't get
53
+ # silently overwritten.
54
EXISTING=$(gh api "repos/${REPO}/issues/${PR_NUMBER}/comments" --paginate \
- --jq 'first(.[] | select(.body | startswith("<!-- coverage-report -->")) | .id) // empty')
55
+ --jq 'first(
56
+ .[]
57
+ | select(.user.login == "github-actions[bot]"
58
+ and (.body | startswith("<!-- coverage-report -->")))
59
+ | .id
60
+ ) // empty')
61
62
# Body comes from the untrusted upstream run; pass via --rawfile +
63
# --input - so it's never shell-interpolated.
0 commit comments