Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ query ListOrganizationRepositoriesQuery(
first: $size
after: $page
orderBy: { field: PUSHED_AT, direction: DESC }
isArchived: false

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The repositories field on the Organization type in the GitHub GraphQL schema does not accept an isArchived argument. Adding isArchived: false here will cause a GraphQL validation error. To filter out archived repositories, you must either fetch the isArchived field and filter them on the client side, or use the search query with archived:false.

) {
nodes {
... on Repository {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ query ListUserRepositoriesQuery(
after: $page
affiliations: [ OWNER ]
orderBy: { field: PUSHED_AT, direction: DESC }
isArchived: false

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The repositories field on the User type in the GitHub GraphQL schema does not accept an isArchived argument. Adding isArchived: false here will cause a GraphQL validation error. To filter out archived repositories, you must either fetch the isArchived field and filter them on the client side, or use the search query with archived:false.

) {
nodes {
... on Repository {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ query OrganizationRepositoriesCountQuery(
$organizationName: String!
) {
organization(login: $organizationName) {
repositories {
repositories(isArchived: false) {
totalCount
}
}
Expand Down