Skip to content

Commit

Permalink
feat(github): use REST for etag caching of issues (#26793)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
rarkins and viceice committed Feb 28, 2024
1 parent d41da2b commit 924b9da
Show file tree
Hide file tree
Showing 4 changed files with 282 additions and 382 deletions.
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

0 comments on commit 924b9da

Please sign in to comment.