diff --git a/src/issues.ts b/src/issues.ts index 4834271..b4fd46b 100644 --- a/src/issues.ts +++ b/src/issues.ts @@ -39,10 +39,12 @@ export const fetchIssues = async ({octokit, owner, repo, labels, lastActivity, e return updatedAtDateTime < lastActivityDateTime; }); + core.info(`Found ${issues.length} issues to process after filtering by last activity...`); const exemptAssigneeList = (exemptAssignees ?? '').split(','); if (exemptAssigneeList && exemptAssigneeList.length > 0) { issues = issues.filter(issue => issue.assignees && !issue.assignees.some(assignee => exemptAssigneeList.includes(assignee.login))); + core.info(`Found ${issues.length} issues to process after filtering by exempt assignees...`); } return issues.map(issue => ({ @@ -62,6 +64,7 @@ interface UnassignIssuesArgs { } export const unassignIssues = async ({octokit, issues, owner, repo, message, labelsToRemove}: UnassignIssuesArgs): Promise => { + core.info(`Found ${issues.length} issues to unassign...`); for (const issue of issues) { core.info(`Unassigning issue #${issue.number}...`); diff --git a/src/main.ts b/src/main.ts index 2527d27..d56e06f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -25,7 +25,9 @@ async function run(): Promise { repo: github.context.repo.repo, }); + core.info(`Unassigned ${issues.length} issues.`); core.setOutput('unassigned-issues-count', issues.length); + core.info(`Unassigned issues: ${issues.map(issue => issue.number).join(', ')}`); core.setOutput('unassigned-issues', JSON.stringify(issues.map(issue => issue.number))); } catch (error) { if (error instanceof Error) core.setFailed(error.message);