- fix formatting for different files

This commit is contained in:
Mike Penz
2021-05-13 14:48:12 +02:00
parent 82e9ebbfff
commit 31d30f3069
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ export class Commits {
): Promise<CommitInfo[]> {
// 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) {
+2 -1
View File
@@ -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)) {
+2 -1
View File
@@ -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) {