- fix formatting for different files
This commit is contained in:
+2
-1
@@ -36,7 +36,8 @@ export class Commits {
|
|||||||
): Promise<CommitInfo[]> {
|
): Promise<CommitInfo[]> {
|
||||||
// Fetch comparisons recursively until we don't find any commits
|
// 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.
|
// 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
|
let compareHead = head
|
||||||
// eslint-disable-next-line no-constant-condition
|
// eslint-disable-next-line no-constant-condition
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|||||||
+2
-1
@@ -84,7 +84,8 @@ export class PullRequests {
|
|||||||
})
|
})
|
||||||
|
|
||||||
for await (const response of this.octokit.paginate.iterator(options)) {
|
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
|
const prs: PullsListData = response.data as PullsListData
|
||||||
|
|
||||||
for (const pr of prs.filter(p => !!p.merged_at)) {
|
for (const pr of prs.filter(p => !!p.merged_at)) {
|
||||||
|
|||||||
+2
-1
@@ -26,7 +26,8 @@ export class Tags {
|
|||||||
})
|
})
|
||||||
|
|
||||||
for await (const response of this.octokit.paginate.iterator(options)) {
|
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
|
const tags: TagsListData = response.data as TagsListData
|
||||||
|
|
||||||
for (const tag of tags) {
|
for (const tag of tags) {
|
||||||
|
|||||||
Reference in New Issue
Block a user