You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reviewer note: [cargo-semver-checks](https://github.com/obi1kenobi/cargo-semver-checks) reported the current version number is not SemVer-compatible with the changes in this pull request (compared against the base branch).
122
-
123
-
<details>
124
-
<summary>Details</summary>
125
-
126
-
```
127
-
${{ steps.read.outputs.logs }}
128
-
```
129
-
130
-
</details>
129
+
env:
130
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131
+
REPO: ${{ github.repository }}
132
+
PR_NUMBER: ${{ steps.read.outputs.pr_number }}
133
+
COMMENT_ID: ${{ steps.find.outputs.comment_id }}
134
+
LOGS: ${{ steps.read.outputs.logs }}
135
+
run: |
136
+
set -euo pipefail
137
+
BODY="<!-- semver-check-comment -->
138
+
Thank you for opening this pull request!
139
+
140
+
Reviewer note: [cargo-semver-checks](https://github.com/obi1kenobi/cargo-semver-checks) reported the current version number is not SemVer-compatible with the changes in this pull request (compared against the base branch).
141
+
142
+
<details>
143
+
<summary>Details</summary>
144
+
145
+
\`\`\`
146
+
${LOGS}
147
+
\`\`\`
148
+
149
+
</details>"
150
+
151
+
# Use --raw-field (not --field): always sends the value as a literal string. while --field would treat a leading `@` as a file to read
152
+
# (even though the body does not start with user input we are being cautious)
153
+
if [ -n "$COMMENT_ID" ]; then
154
+
gh api "repos/${REPO}/issues/comments/${COMMENT_ID}" --method PATCH --raw-field body="$BODY"
155
+
else
156
+
gh api "repos/${REPO}/issues/${PR_NUMBER}/comments" --method POST --raw-field body="$BODY"
157
+
fi
131
158
159
+
# Clear a stale comment once the breaking change is resolved.
0 commit comments