-
Notifications
You must be signed in to change notification settings - Fork 30
github: list commits action #209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments, otherwise LGTM
tasks/git/src/test/java/com/walmartlabs/concord/plugins/git/client/GitHubClientTest.java
Outdated
Show resolved
Hide resolved
|
|
||
| var apiUrl = buildApiUrl(apiInfo.baseUrl(), path); | ||
| var requestUrl = appendParamsToUrl(apiUrl, effectiveParams); | ||
| while (requestUrl != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When requestUrl is null? Should it instead be something like
while (true) {
var keepGoing = handler.onPage(...)
if (!keepGoing) {
break;
}
...etc
}There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requestUrl = parseNextLink(response.headers().firstValue("Link").orElse(null));
We stop either when there are no more pages or when the handler indicates no further processing is needed
No description provided.