Fix for failed checks

This commit is contained in:
aparnajyothi-y 2023-11-24 19:23:11 +05:30
parent 4ea15c3984
commit 17ce8d421b
3 changed files with 11 additions and 5 deletions

View File

@ -17,3 +17,4 @@ jobs:
uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main
with:
node-version: '20.x'

View File

@ -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'
with:
node-version: '20.x'

View File

@ -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) {