Skip to content

Commit

Permalink
Use "Link" header for pagination completion check
Browse files Browse the repository at this point in the history
  • Loading branch information
harveysanders committed Sep 4, 2023
1 parent acc362f commit d5d10a6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/cmd/run/shared/shared.go
Expand Up @@ -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
}
Expand Down

0 comments on commit d5d10a6

Please sign in to comment.