git-touch-android-ios-app/packages/gql_github/lib/repo.graphql

113 lines
1.7 KiB
GraphQL
Raw Normal View History

2022-10-08 19:31:23 +02:00
fragment CommitParts on Commit {
2022-09-30 21:49:56 +02:00
history {
totalCount
}
}
2022-10-08 19:31:23 +02:00
fragment RefParts on Ref {
2022-09-30 21:49:56 +02:00
name
target {
... on Commit {
2022-10-08 19:31:23 +02:00
...CommitParts # extracted to fragment for type cast
2022-09-30 21:49:56 +02:00
}
}
}
query Repo(
$owner: String!
$name: String!
$branchSpecified: Boolean!
$branch: String!
) {
repository(owner: $owner, name: $name) {
owner {
login
avatarUrl
}
name
description
homepageUrl
isPrivate
isFork
url
viewerHasStarred
viewerSubscription
2022-10-08 19:31:23 +02:00
repositoryTopics(first: 10) {
nodes {
url
topic {
name
}
}
2022-09-30 21:49:56 +02:00
}
2022-10-08 19:31:23 +02:00
2022-09-30 21:49:56 +02:00
watchers {
totalCount
}
2022-10-08 19:31:23 +02:00
stargazers {
2022-09-30 21:49:56 +02:00
totalCount
}
2022-10-08 19:31:23 +02:00
forks {
2022-09-30 21:49:56 +02:00
totalCount
}
2022-10-08 19:31:23 +02:00
2022-09-30 21:49:56 +02:00
languages(first: 10, orderBy: { field: SIZE, direction: DESC }) {
totalSize
edges {
size
node {
name
color
}
}
}
2022-10-08 19:31:23 +02:00
primaryLanguage {
name
}
licenseInfo {
name
spdxId
}
diskUsage
hasIssuesEnabled
issues {
totalCount
}
issuesOpen: issues(states: OPEN) {
totalCount
}
pullRequests {
totalCount
}
pullRequestsOpen: pullRequests(states: OPEN) {
totalCount
}
discussions {
totalCount
}
hasProjectsEnabled
projectsUrl
projects {
totalCount
}
2022-09-30 21:49:56 +02:00
defaultBranchRef @skip(if: $branchSpecified) {
2022-10-08 19:31:23 +02:00
...RefParts
2022-09-30 21:49:56 +02:00
}
ref(qualifiedName: $branch) @include(if: $branchSpecified) {
2022-10-08 19:31:23 +02:00
...RefParts
2022-09-30 21:49:56 +02:00
}
refs(first: 100, refPrefix: "refs/heads/") {
totalCount
nodes {
name
}
}
2022-10-08 19:31:23 +02:00
releases {
totalCount
2022-09-30 21:49:56 +02:00
}
}
}