# Public repos for the current user fragment Repos on RepositoryConnection { nodes { # Metadata name url description # Dates createdAt updatedAt pushedAt # Counts stargazers { totalCount } forkCount defaultBranchRef { commits: target { ... on Commit { history(first: 1) { totalCount } } } } repositoryTopics(first: 10) { nodes { topic { name stargazers { totalCount } viewerHasStarred } url } } } } query ownedRepos { viewer { original: repositories( first: 100 ownerAffiliations: OWNER privacy: PUBLIC isFork: false isLocked: false orderBy: { field: UPDATED_AT, direction: DESC } ) { ...Repos } forked: repositories( first: 100 ownerAffiliations: OWNER privacy: PUBLIC isFork: true isLocked: false orderBy: { field: UPDATED_AT, direction: DESC } ) { ...Repos } archived: repositories( first: 100 ownerAffiliations: OWNER privacy: PUBLIC isLocked: true orderBy: { field: UPDATED_AT, direction: DESC } ) { ...Repos } } }