- recompile dist

- remove graphql types
This commit is contained in:
Mike Penz
2025-02-17 21:30:51 +01:00
parent 6636c4cd91
commit 19c820b835
5 changed files with 1868 additions and 1807 deletions
+2 -3
View File
@@ -7,7 +7,6 @@ import {DiffInfo} from '../pr-collector/commits.js'
import {CommentInfo, PullData, PullRequestInfo, PullReviewsData, PullsListData} from '../pr-collector/pullRequests.js'
import {Unpacked} from '../pr-collector/utils.js'
import moment from 'moment'
import {GraphQlQueryResponse} from '@octokit/graphql/types'
export class GithubRepository extends BaseRepository {
async getDiffRemote(owner: string, repo: string, base: string, head: string): Promise<DiffInfo> {
@@ -214,7 +213,8 @@ export class GithubRepository extends BaseRepository {
let hasNextPage = true
let cursor: string | null = null
while (hasNextPage && tagsInfo.length < maxTagsToFetch) {
const result: GraphQlQueryResponse<unknown> = await this.octokit.graphql(`
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const result: any = await this.octokit.graphql(`
{
repository(owner: "${owner}", name: "${repo}") {
refs(refPrefix: "refs/tags/", first: ${pageSize}, after: ${cursor ? `"${cursor}"` : 'null'}, orderBy: {field: TAG_COMMIT_DATE, direction: DESC}) {
@@ -244,7 +244,6 @@ export class GithubRepository extends BaseRepository {
}
`)
// @ts-expect-error graphql response
const refs = result.repository.refs
hasNextPage = refs.pageInfo.hasNextPage && tagsInfo.length < maxTagsToFetch
cursor = refs.pageInfo.endCursor