Remove unused ratelimit code
This commit is contained in:
parent
4d564ffb50
commit
23eee9aa03
|
@ -165,9 +165,6 @@ public class UpdateDependenciesPlugin implements Plugin<Project> {
|
||||||
String commitMessage = title;
|
String commitMessage = title;
|
||||||
if (updateDependenciesExtension.getUpdateMode() == UpdateDependenciesExtension.UpdateMode.GITHUB_ISSUE) {
|
if (updateDependenciesExtension.getUpdateMode() == UpdateDependenciesExtension.UpdateMode.GITHUB_ISSUE) {
|
||||||
GitHubApi.FindCreateIssueResult createIssueResult = createIssueResultMono.block();
|
GitHubApi.FindCreateIssueResult createIssueResult = createIssueResultMono.block();
|
||||||
RateLimitQuery.RateLimit rateLimit = gitHubApi.findRateLimit().block();
|
|
||||||
rateLimit = gitHubApi.findRateLimit().block();
|
|
||||||
System.out.println("remaining " + rateLimit.remaining() + " reset at " + rateLimit.resetAt());
|
|
||||||
Integer issueNumber = gitHubApi.createIssue(createIssueResult.getRepositoryId(), title, createIssueResult.getLabelIds(), createIssueResult.getMilestoneId(), createIssueResult.getAssigneeId()).delayElement(Duration.ofSeconds(1)).block();
|
Integer issueNumber = gitHubApi.createIssue(createIssueResult.getRepositoryId(), title, createIssueResult.getLabelIds(), createIssueResult.getMilestoneId(), createIssueResult.getAssigneeId()).delayElement(Duration.ofSeconds(1)).block();
|
||||||
commitMessage += "\n\nCloses gh-" + issueNumber;
|
commitMessage += "\n\nCloses gh-" + issueNumber;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue