Constant GRAPHQL_REPOSITORY_QUERY
Source pub const GRAPHQL_REPOSITORY_QUERY: &str = r#"
query($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) {
id
name
nameWithOwner
description
url
homepageUrl
createdAt
updatedAt
pushedAt
isPrivate
isFork
isArchived
stargazerCount
forkCount
watchers {
totalCount
}
issues {
totalCount
}
pullRequests {
totalCount
}
releases {
totalCount
}
primaryLanguage {
name
color
}
languages(first: 10, orderBy: {field: SIZE, direction: DESC}) {
edges {
size
node {
name
color
}
}
}
licenseInfo {
name
spdxId
}
defaultBranchRef {
name
}
repositoryTopics(first: 20) {
edges {
node {
topic {
name
}
}
}
}
}
}
"#;