doc(run shared): clarify 404 handling
This commit is contained in:
parent
c6f574ccb1
commit
229216e830
1 changed files with 2 additions and 0 deletions
|
|
@ -452,6 +452,8 @@ func preloadWorkflowNames(client *api.Client, repo ghrepo.Interface, runs []Run)
|
|||
// look it up directly without receiving a 404, but it is nonetheless
|
||||
// in the workflow run list. To handle this, we set the workflow name
|
||||
// to an empty string.
|
||||
// Deciding to put this here instead of in GetWorkflow to allow
|
||||
// the caller to decide what a 404 means.
|
||||
if httpErr, ok := err.(api.HTTPError); ok && httpErr.StatusCode == 404 {
|
||||
workflowMap[run.WorkflowID] = ""
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue