diff --git a/.github/workflows/basic-validation.yml b/.github/workflows/basic-validation.yml index d2b406f3..0a6928e9 100644 --- a/.github/workflows/basic-validation.yml +++ b/.github/workflows/basic-validation.yml @@ -17,3 +17,4 @@ jobs: uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main with: node-version: '20.x' + diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 160fa1c6..509ea6cc 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -15,5 +15,5 @@ jobs: call-check-dist: name: Check dist/ uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main - with: - node-version: '20.x' \ No newline at end of file + with: + node-version: '20.x' diff --git a/src/classes/issues-processor.ts b/src/classes/issues-processor.ts index cf259f8e..006f34f9 100644 --- a/src/classes/issues-processor.ts +++ b/src/classes/issues-processor.ts @@ -34,7 +34,12 @@ import {RateLimit} from './rate-limit'; * Handle processing of issues for staleness/closure. */ -type state_reason_type= "completed" | "reopened" | "not_planned"|null |undefined; +type state_reason_type = + | 'completed' + | 'reopened' + | 'not_planned' + | null + | undefined; export class IssuesProcessor { private static _updatedSince(timestamp: string, num_days: number): boolean { const daysInMillis = 1000 * 60 * 60 * 24 * num_days; @@ -929,14 +934,14 @@ export class IssuesProcessor { try { this._consumeIssueOperation(issue); this.statistics?.incrementClosedItemsCount(issue); - + if (!this.options.debugOnly) { await this.client.rest.issues.update({ owner: context.repo.owner, repo: context.repo.repo, issue_number: issue.number, state: 'closed', - state_reason : this.options.closeIssueReason as state_reason_type + state_reason: this.options.closeIssueReason as state_reason_type }); } } catch (error) {