git-graphql
GraphQL server for your git repositories. Powered by gqlgen and go-git.
Usage
Go 1.16 or higher required.
go install github.com/nasdf/git-graphql
# run this from your repo root
git-graphql
Query repo head tree entries.
query head {
revision(name: "HEAD") {
tree {
entries {
name
mode
object {
hash
type
}
}
}
}
}
Query repo commit history.
query history {
commits {
hash
message
committer {
name
email
when
}
}
}
License
GPLv3