mirror of
https://github.com/git-touch/git-touch
synced 2024-12-21 04:23:59 +01:00
102 lines
1.6 KiB
GraphQL
102 lines
1.6 KiB
GraphQL
query GhRepo(
|
|
$owner: String!
|
|
$name: String!
|
|
$branchSpecified: Boolean!
|
|
$branch: String!
|
|
) {
|
|
repository(owner: $owner, name: $name) {
|
|
owner {
|
|
__typename
|
|
login
|
|
avatarUrl
|
|
}
|
|
name
|
|
description
|
|
homepageUrl
|
|
isPrivate
|
|
isFork
|
|
stargazers {
|
|
totalCount
|
|
}
|
|
forks {
|
|
totalCount
|
|
}
|
|
primaryLanguage {
|
|
color
|
|
name
|
|
}
|
|
id
|
|
diskUsage
|
|
hasIssuesEnabled
|
|
url
|
|
viewerHasStarred
|
|
viewerSubscription
|
|
projectsUrl
|
|
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 {
|
|
__typename
|
|
... on Commit {
|
|
history {
|
|
totalCount
|
|
}
|
|
}
|
|
}
|
|
}
|
|
ref(qualifiedName: $branch) @include(if: $branchSpecified) {
|
|
name
|
|
target {
|
|
__typename
|
|
... on Commit {
|
|
history {
|
|
totalCount
|
|
}
|
|
}
|
|
}
|
|
}
|
|
refs(first: 100, refPrefix: "refs/heads/") {
|
|
totalCount
|
|
nodes {
|
|
name
|
|
}
|
|
}
|
|
licenseInfo {
|
|
name
|
|
spdxId
|
|
}
|
|
repositoryTopics(first: 10) {
|
|
nodes {
|
|
url
|
|
topic {
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|