Skip to content

Commit

Permalink
refactor(github): Remove unused GraphQL queries (#27710)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Mar 4, 2024
1 parent 85e061b commit 794fc5c
Showing 1 changed file with 0 additions and 72 deletions.
72 changes: 0 additions & 72 deletions lib/modules/platform/github/graphql.ts
Expand Up @@ -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!,
Expand Down

0 comments on commit 794fc5c

Please sign in to comment.