diff --git a/lib/modules/platform/github/graphql.ts b/lib/modules/platform/github/graphql.ts index 8f96b4f4fb0a3ae5dd9b7ac7748509e877c95745..9e5f0155a2933c36caa87ca880e21e9b17837b88 100644 --- a/lib/modules/platform/github/graphql.ts +++ b/lib/modules/platform/github/graphql.ts @@ -24,78 +24,6 @@ query($owner: String!, $name: String!) { } `; -export const closedPrsQuery = ` -query($owner: String!, $name: String!, $count: Int, $cursor: String) { - repository(owner: $owner, name: $name) { - pullRequests( - states: [CLOSED, MERGED], - orderBy: { - field: UPDATED_AT, - direction: DESC - }, - first: $count, - after: $cursor - ) { - pageInfo { - endCursor - hasNextPage - } - nodes { - number - state - headRefName - title - comments(last: 100) { - nodes { - databaseId - body - } - } - } - } - } -} -`; - -export const openPrsQuery = ` -query($owner: String!, $name: String!, $count: Int, $cursor: String) { - repository(owner: $owner, name: $name) { - pullRequests( - states: [OPEN], - orderBy: { - field: UPDATED_AT, - direction: DESC - }, - first: $count, - after: $cursor - ) { - pageInfo { - endCursor - hasNextPage - } - nodes { - number - headRefName - baseRefName - title - labels(last: 100) { - nodes { - name - } - } - assignees { - totalCount - } - reviewRequests { - totalCount - } - body - } - } - } -} -`; - export const getIssuesQuery = ` query( $owner: String!,