spelling: github
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
f10601d625
commit
4ffc4f34ec
|
@ -2489,15 +2489,15 @@ function _run() {
|
||||||
const issueProcessor = new issues_processor_1.IssuesProcessor(args, state);
|
const issueProcessor = new issues_processor_1.IssuesProcessor(args, state);
|
||||||
const rateLimitAtStart = yield issueProcessor.getRateLimit();
|
const rateLimitAtStart = yield issueProcessor.getRateLimit();
|
||||||
if (rateLimitAtStart) {
|
if (rateLimitAtStart) {
|
||||||
core.debug(`Github API rate status: limit=${rateLimitAtStart.limit}, used=${rateLimitAtStart.used}, remaining=${rateLimitAtStart.remaining}`);
|
core.debug(`GitHub API rate status: limit=${rateLimitAtStart.limit}, used=${rateLimitAtStart.used}, remaining=${rateLimitAtStart.remaining}`);
|
||||||
}
|
}
|
||||||
yield issueProcessor.processIssues();
|
yield issueProcessor.processIssues();
|
||||||
const rateLimitAtEnd = yield issueProcessor.getRateLimit();
|
const rateLimitAtEnd = yield issueProcessor.getRateLimit();
|
||||||
if (rateLimitAtEnd) {
|
if (rateLimitAtEnd) {
|
||||||
core.debug(`Github API rate status: limit=${rateLimitAtEnd.limit}, used=${rateLimitAtEnd.used}, remaining=${rateLimitAtEnd.remaining}`);
|
core.debug(`GitHub API rate status: limit=${rateLimitAtEnd.limit}, used=${rateLimitAtEnd.used}, remaining=${rateLimitAtEnd.remaining}`);
|
||||||
if (rateLimitAtStart)
|
if (rateLimitAtStart)
|
||||||
core.info(`Github API rate used: ${rateLimitAtStart.remaining - rateLimitAtEnd.remaining}`);
|
core.info(`GitHub API rate used: ${rateLimitAtStart.remaining - rateLimitAtEnd.remaining}`);
|
||||||
core.info(`Github API rate remaining: ${rateLimitAtEnd.remaining}; reset at: ${rateLimitAtEnd.reset}`);
|
core.info(`GitHub API rate remaining: ${rateLimitAtEnd.remaining}; reset at: ${rateLimitAtEnd.reset}`);
|
||||||
}
|
}
|
||||||
yield state.persist();
|
yield state.persist();
|
||||||
yield processOutput(issueProcessor.staleIssues, issueProcessor.closedIssues);
|
yield processOutput(issueProcessor.staleIssues, issueProcessor.closedIssues);
|
||||||
|
|
|
@ -17,7 +17,7 @@ async function _run(): Promise<void> {
|
||||||
const rateLimitAtStart = await issueProcessor.getRateLimit();
|
const rateLimitAtStart = await issueProcessor.getRateLimit();
|
||||||
if (rateLimitAtStart) {
|
if (rateLimitAtStart) {
|
||||||
core.debug(
|
core.debug(
|
||||||
`Github API rate status: limit=${rateLimitAtStart.limit}, used=${rateLimitAtStart.used}, remaining=${rateLimitAtStart.remaining}`
|
`GitHub API rate status: limit=${rateLimitAtStart.limit}, used=${rateLimitAtStart.used}, remaining=${rateLimitAtStart.remaining}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,18 +27,18 @@ async function _run(): Promise<void> {
|
||||||
|
|
||||||
if (rateLimitAtEnd) {
|
if (rateLimitAtEnd) {
|
||||||
core.debug(
|
core.debug(
|
||||||
`Github API rate status: limit=${rateLimitAtEnd.limit}, used=${rateLimitAtEnd.used}, remaining=${rateLimitAtEnd.remaining}`
|
`GitHub API rate status: limit=${rateLimitAtEnd.limit}, used=${rateLimitAtEnd.used}, remaining=${rateLimitAtEnd.remaining}`
|
||||||
);
|
);
|
||||||
|
|
||||||
if (rateLimitAtStart)
|
if (rateLimitAtStart)
|
||||||
core.info(
|
core.info(
|
||||||
`Github API rate used: ${
|
`GitHub API rate used: ${
|
||||||
rateLimitAtStart.remaining - rateLimitAtEnd.remaining
|
rateLimitAtStart.remaining - rateLimitAtEnd.remaining
|
||||||
}`
|
}`
|
||||||
);
|
);
|
||||||
|
|
||||||
core.info(
|
core.info(
|
||||||
`Github API rate remaining: ${rateLimitAtEnd.remaining}; reset at: ${rateLimitAtEnd.reset}`
|
`GitHub API rate remaining: ${rateLimitAtEnd.remaining}; reset at: ${rateLimitAtEnd.reset}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue