More debugging

This commit is contained in:
Luke Tomlinson
2021-06-29 11:50:32 -04:00
parent 31eafc7219
commit 489c8a69b9
2 changed files with 2 additions and 4 deletions

3
dist/index.js vendored
View File

@@ -505,7 +505,6 @@ class IssuesProcessor {
let actor;
try {
this.operations.consumeOperation();
core.debug(`All Users: ${JSON.stringify(yield this.client.users.list())}`);
actor = yield this.client.users.getAuthenticated();
}
catch (error) {
@@ -556,7 +555,7 @@ class IssuesProcessor {
});
const events = yield this.client.paginate(options);
const reversedEvents = events.reverse();
core.debug(`Reversed Events: ${JSON.stringify(reversedEvents)}`);
issueLogger.info(`Reversed Events: ${JSON.stringify(reversedEvents)}`);
const staleLabeledEvent = reversedEvents.find(event => event.event === 'labeled' && event.label.name === label);
if (!staleLabeledEvent) {
// Must be old rather than labeled

View File

@@ -494,7 +494,6 @@ export class IssuesProcessor {
try {
this.operations.consumeOperation();
core.debug(`All Users: ${JSON.stringify(await this.client.users.list())}`)
actor = await this.client.users.getAuthenticated();
} catch (error) {
return context.actor;
@@ -552,7 +551,7 @@ export class IssuesProcessor {
const events: IIssueEvent[] = await this.client.paginate(options);
const reversedEvents = events.reverse();
core.debug(`Reversed Events: ${JSON.stringify(reversedEvents)}`)
issueLogger.info(`Reversed Events: ${JSON.stringify(reversedEvents)}`)
const staleLabeledEvent = reversedEvents.find(
event => event.event === 'labeled' && event.label.name === label