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
m=f"GitHub action {name} references existing commit SHA '{ref}' but does not specify the tag name for it."
191
-
result.log(f" .. ⚡ {m}")
192
-
result.warning(m)
186
+
result.warning(f"GitHub action {name} references existing commit SHA '{ref}' but does not specify the tag name for it.", " ..")
193
187
case404:
194
-
m=f"GitHub action {name} references non existing commit SHA '{ref}': HTTP/{response.status}: {response.reason}, API URL: {response.req_url}"
195
-
result.log(f" .. ❌ {m}")
196
-
result.failure(m)
188
+
result.failure(f"GitHub action {name} references non existing commit SHA '{ref}': HTTP/{response.status}: {response.reason}, API URL: {response.req_url}", " ..")
197
189
case _:
198
190
m=f"Failed to fetch Git SHA '{ref}' from GitHub repo 'https://github.com/{owner_repo}': HTTP/{response.status}: {response.reason}, API URL: {response.req_url}\n{response.body}"
199
191
ifignore_gh_api_errors:
200
192
has_ignored_api_errors=True
201
-
result.log(f" .. ⚡ {m}")
202
-
result.warning(m)
193
+
result.warning(m, " ..")
203
194
else:
204
-
result.log(f" .. ❌ {m}")
205
-
result.failure(m)
195
+
result.failure(m, " ..")
206
196
else:
207
197
tag: str=details.get('tag')
208
198
result.log(f" .. collecting Git SHAs for tag {tag}")
m=f"Failed to fetch details for Git tag '{tag}' from GitHub repo 'https://github.com/{owner_repo}': HTTP/{response2.status}: {response2.reason}, API URL: {response2.req_url}\n{response2.body}"
243
233
ifignore_gh_api_errors:
244
234
has_ignored_api_errors=True
245
-
result.log(f" .. ⚡ {m}")
246
-
result.warning(m)
235
+
result.warning(m, " ..")
247
236
else:
248
-
result.log(f" .. ❌ {m}")
249
-
result.failure(m)
237
+
result.failure(m, " ..")
250
238
case"commit":
251
239
valid_shas_for_tag.add(tag_object_sha)
252
240
case"branch":
253
-
m=f"Branch references mentioned for Git tag '{tag}' for GitHub action {name}"
254
-
result.log(f" .. ❌ {m}")
255
-
result.failure(m)
241
+
result.failure(f"Branch references mentioned for Git tag '{tag}' for GitHub action {name}", " ..")
256
242
case _:
257
-
m=f"Invalid Git object type '{tag_object['type']}' for Git tag '{tag}' in GitHub repo 'https://github.com/{owner_repo}'"
258
-
result.log(f" .. ❌ {m}")
259
-
result.failure(m)
243
+
result.failure(f"Invalid Git object type '{tag_object['type']}' for Git tag '{tag}' in GitHub repo 'https://github.com/{owner_repo}'", " ..")
260
244
case _:
261
245
m=f"Failed to fetch matching Git tags for '{tag}' from GitHub repo 'https://github.com/{owner_repo}': HTTP/{response.status}: {response.reason}, API URL: {response.req_url}\n{response.body}"
262
246
ifignore_gh_api_errors:
263
-
result.log(f" .. ⚡ {m}")
264
-
result.warning(m)
247
+
result.warning(m, " ..")
265
248
has_ignored_api_errors=True
266
249
else:
267
-
result.log(f" .. ❌ {m}")
268
-
result.failure(m)
250
+
result.failure(m, " ..")
269
251
else:
270
-
m=f"GitHub action {name} references an invalid Git SHA '{ref}'"
0 commit comments