git-graphql

command module
v0.0.0-...-5262f89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL