Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(github): use REST for etag caching of issues #26793

Merged
merged 16 commits into from Feb 28, 2024
Merged
30 changes: 0 additions & 30 deletions lib/modules/platform/github/graphql.ts
Expand Up @@ -93,36 +93,6 @@ query($owner: String!, $name: String!, $count: Int, $cursor: String) {
}
`;

export const getIssuesQuery = `
query(
$owner: String!,
$name: String!,
$user: String!,
$count: Int,
$cursor: String
) {
repository(owner: $owner, name: $name) {
issues(
orderBy: { field: UPDATED_AT, direction: DESC },
filterBy: { createdBy: $user },
first: $count,
after: $cursor
) {
pageInfo {
endCursor
hasNextPage
}
nodes {
number
state
title
body
}
}
}
}
`;

export const vulnerabilityAlertsQuery = (filterByState: boolean): string => `
query($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) {
Expand Down