Use "Link" header for pagination completion check
This commit is contained in:
parent
acc362f9d8
commit
d5d10a6f38
1 changed files with 0 additions and 3 deletions
|
|
@ -448,9 +448,6 @@ func GetJobs(client *api.Client, repo ghrepo.Interface, run *Run) ([]Job, error)
|
|||
}
|
||||
|
||||
run.Jobs = append(run.Jobs, resp.Jobs...)
|
||||
if len(run.Jobs) >= resp.TotalCount {
|
||||
return run.Jobs, nil
|
||||
}
|
||||
}
|
||||
return run.Jobs, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue