Skip to content

Commit

Permalink
fix(github): Revert "feat(github): use REST for etag caching of issue…
Browse files Browse the repository at this point in the history
…s" (#27612)
  • Loading branch information
rarkins committed Feb 28, 2024
1 parent 4d61cf2 commit 9f23946
Show file tree
Hide file tree
Showing 4 changed files with 382 additions and 282 deletions.
30 changes: 30 additions & 0 deletions lib/modules/platform/github/graphql.ts
Expand Up @@ -93,6 +93,36 @@ 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

0 comments on commit 9f23946

Please sign in to comment.