Repository navigation
Commit 8d638ca
fix: skip the PR comment on push events without a warning
pr-comments: true on a push event annotated every run with
"::warning::Unable to post PR comment: Unable to determine PR number",
because only PR_COMMENTS_ENABLED short-circuited add_pr_comments() and
get_pr_number() raised for a ref that is not refs/pull/N/merge.
Return early with a plain log line when the event is not a pull
request: there is nothing to comment on, and that is not a problem
worth an annotation.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018xYa7m3qup5wyN5MaXFgf61 parent 9703fab commit 8d638ca
2 files changed
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
1105 | 1111 | | |
1106 | 1112 | | |
1107 | 1113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1153 | 1153 | | |
1154 | 1154 | | |
1155 | 1155 | | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
1156 | 1193 | | |
1157 | 1194 | | |
1158 | 1195 | | |
| 1196 | + | |
1159 | 1197 | | |
1160 | 1198 | | |
1161 | 1199 | | |
| |||
1170 | 1208 | | |
1171 | 1209 | | |
1172 | 1210 | | |
| 1211 | + | |
1173 | 1212 | | |
1174 | 1213 | | |
1175 | 1214 | | |
| |||
1200 | 1239 | | |
1201 | 1240 | | |
1202 | 1241 | | |
| 1242 | + | |
1203 | 1243 | | |
1204 | 1244 | | |
1205 | 1245 | | |
| |||
1233 | 1273 | | |
1234 | 1274 | | |
1235 | 1275 | | |
| 1276 | + | |
1236 | 1277 | | |
1237 | 1278 | | |
1238 | 1279 | | |
| |||
1263 | 1304 | | |
1264 | 1305 | | |
1265 | 1306 | | |
| 1307 | + | |
1266 | 1308 | | |
1267 | 1309 | | |
1268 | 1310 | | |
| |||
1317 | 1359 | | |
1318 | 1360 | | |
1319 | 1361 | | |
| 1362 | + | |
1320 | 1363 | | |
1321 | 1364 | | |
1322 | 1365 | | |
| |||
0 commit comments