more logging to see if we have draft results

This commit is contained in:
Ross Brodbeck 2020-08-28 14:19:19 -04:00
parent c52e87c95b
commit 2392a086f1
2 changed files with 3 additions and 2 deletions

2
dist/index.js vendored
View File

@ -2607,7 +2607,6 @@ class IssueProcessor {
core.info(`Skipping ${issueType} because it is locked`);
continue; // don't process locked issues
}
core.info(`is draft: ${issue.draft}`);
if (issue.draft && !this.options.processDrafts) {
core.info(`Skipping ${issueType} because it is a draft`);
continue; // don't process drafts
@ -2716,6 +2715,7 @@ class IssueProcessor {
direction: this.options.ascending ? 'asc' : 'desc',
page
});
core.info(`issue data: ${issueResult.data}`);
return issueResult.data;
}
catch (error) {

View File

@ -152,7 +152,6 @@ export class IssueProcessor {
continue; // don't process locked issues
}
core.info(`is draft: ${issue.draft}`);
if (issue.draft && !this.options.processDrafts) {
core.info(`Skipping ${issueType} because it is a draft`);
continue; // don't process drafts
@ -323,6 +322,8 @@ export class IssueProcessor {
page
}
);
core.info(`issue data: ${issueResult.data}`);
return issueResult.data;
} catch (error) {
core.error(`Get issues for repo error: ${error.message}`);