From 31d30f306949b399d96a29ff6dd6c9e7df070e13 Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Thu, 13 May 2021 14:48:12 +0200 Subject: [PATCH] - fix formatting for different files --- src/commits.ts | 3 ++- src/pullRequests.ts | 3 ++- src/tags.ts | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/commits.ts b/src/commits.ts index 76afa6d..746d48a 100755 --- a/src/commits.ts +++ b/src/commits.ts @@ -36,7 +36,8 @@ export class Commits { ): Promise { // Fetch comparisons recursively until we don't find any commits // This is because the GitHub API limits the number of commits returned in a single response. - let commits: RestEndpointMethodTypes['repos']['compareCommits']['response']['data']['commits'] = [] + let commits: RestEndpointMethodTypes['repos']['compareCommits']['response']['data']['commits'] = + [] let compareHead = head // eslint-disable-next-line no-constant-condition while (true) { diff --git a/src/pullRequests.ts b/src/pullRequests.ts index d1465e8..5b8c731 100755 --- a/src/pullRequests.ts +++ b/src/pullRequests.ts @@ -84,7 +84,8 @@ export class PullRequests { }) for await (const response of this.octokit.paginate.iterator(options)) { - type PullsListData = RestEndpointMethodTypes['pulls']['list']['response']['data'] + type PullsListData = + RestEndpointMethodTypes['pulls']['list']['response']['data'] const prs: PullsListData = response.data as PullsListData for (const pr of prs.filter(p => !!p.merged_at)) { diff --git a/src/tags.ts b/src/tags.ts index ffb45f4..bc31557 100755 --- a/src/tags.ts +++ b/src/tags.ts @@ -26,7 +26,8 @@ export class Tags { }) for await (const response of this.octokit.paginate.iterator(options)) { - type TagsListData = RestEndpointMethodTypes['repos']['listTags']['response']['data'] + type TagsListData = + RestEndpointMethodTypes['repos']['listTags']['response']['data'] const tags: TagsListData = response.data as TagsListData for (const tag of tags) {