From 05ac167e57f83a81739648df1a3e7afa658cb816 Mon Sep 17 00:00:00 2001 From: Muunatic Date: Fri, 29 Dec 2023 17:12:17 +0700 Subject: [PATCH] style: no multi spaces and add newlines between class members --- src/class/issuesClose.ts | 3 ++- src/class/issuesComment.ts | 1 + src/class/prsReview.ts | 1 + src/class/prsStale.ts | 2 ++ src/class/prsSynchronize.ts | 1 + src/class/push.ts | 6 +----- src/structures/type.ts | 1 - 7 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/class/issuesClose.ts b/src/class/issuesClose.ts index fe02758..daa6b32 100644 --- a/src/class/issuesClose.ts +++ b/src/class/issuesClose.ts @@ -69,7 +69,8 @@ export default class IssuesClose { owner: this.context.payload.repository.owner.login, repo: this.context.payload.repository.name, issue_number: this.context.payload.issue.number, - lock_reason: "spam" + lock_reason: "off-topic" }); } + } diff --git a/src/class/issuesComment.ts b/src/class/issuesComment.ts index 4ee2d59..804a242 100644 --- a/src/class/issuesComment.ts +++ b/src/class/issuesComment.ts @@ -189,4 +189,5 @@ export default class IssuesComment { } } } + } diff --git a/src/class/prsReview.ts b/src/class/prsReview.ts index 364f9ff..8b538db 100644 --- a/src/class/prsReview.ts +++ b/src/class/prsReview.ts @@ -482,4 +482,5 @@ export default class PullRequestReview { } } } + } diff --git a/src/class/prsStale.ts b/src/class/prsStale.ts index 6713699..a7b9712 100644 --- a/src/class/prsStale.ts +++ b/src/class/prsStale.ts @@ -6,6 +6,7 @@ import { octokit } from "../index"; * @exports */ export default class PRsStale { + /** * @constructor */ @@ -137,4 +138,5 @@ export default class PRsStale { } }); } + } diff --git a/src/class/prsSynchronize.ts b/src/class/prsSynchronize.ts index ecf6233..2e02ca0 100644 --- a/src/class/prsSynchronize.ts +++ b/src/class/prsSynchronize.ts @@ -146,4 +146,5 @@ export default class PullRequestSynchronize { }); }); } + } diff --git a/src/class/push.ts b/src/class/push.ts index 0170561..1079cbc 100644 --- a/src/class/push.ts +++ b/src/class/push.ts @@ -78,11 +78,7 @@ export default class Push { continue; } } - event1 = arrayActivity.userData[0].event; - event2 = arrayActivity.userData[1].event; - event3 = arrayActivity.userData[2].event; - event4 = arrayActivity.userData[3].event; - event5 = arrayActivity.userData[4].event; + event1 = arrayActivity.userData[0].event, event2 = arrayActivity.userData[1].event, event3 = arrayActivity.userData[2].event, event4 = arrayActivity.userData[3].event, event5 = arrayActivity.userData[4].event; return; }); } diff --git a/src/structures/type.ts b/src/structures/type.ts index 457634c..ce31806 100644 --- a/src/structures/type.ts +++ b/src/structures/type.ts @@ -6,7 +6,6 @@ type userDataInterface = { event: string; } - export type getEvent = { id: string; type: string;