git-touch-android-ios-app/lib/graphql/github_repository.graphql

102 lines
1.6 KiB
GraphQL
Raw Normal View History

2019-12-07 09:12:18 +01:00
query(
$owner: String!
$name: String!
$branchSpecified: Boolean!
$branch: String!
) {
repository(owner: $owner, name: $name) {
owner {
__typename
login
avatarUrl
}
name
description
2020-01-01 13:44:18 +01:00
homepageUrl
2019-12-07 09:12:18 +01:00
isPrivate
isFork
stargazers {
totalCount
}
forks {
totalCount
}
primaryLanguage {
color
name
}
id
diskUsage
hasIssuesEnabled
url
viewerHasStarred
# viewerSubscription # TODO
2020-01-01 13:59:20 +01:00
projectsUrl
2019-12-07 09:12:18 +01:00
watchers {
totalCount
}
issues(states: OPEN) {
totalCount
}
pullRequests(states: OPEN) {
totalCount
}
projects {
totalCount
}
releases {
totalCount
}
languages(first: 10, orderBy: { field: SIZE, direction: DESC }) {
totalSize
edges {
size
node {
name
color
}
}
}
defaultBranchRef @skip(if: $branchSpecified) {
name
target {
2019-12-07 09:22:05 +01:00
__typename
2019-12-07 09:12:18 +01:00
... on Commit {
history {
totalCount
}
}
}
}
ref(qualifiedName: $branch) @include(if: $branchSpecified) {
name
target {
2019-12-07 09:22:05 +01:00
__typename
2019-12-07 09:12:18 +01:00
... on Commit {
history {
totalCount
}
}
}
}
refs(first: 100, refPrefix: "refs/heads/") {
totalCount
nodes {
name
}
}
licenseInfo {
name
spdxId
}
2020-01-01 13:44:18 +01:00
repositoryTopics(first: 10) {
2019-12-07 09:12:18 +01:00
nodes {
url
topic {
name
}
}
}
}
}