gitbranch

command module
v1.0.1-0...-0f46e88 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

gitbranch

This is a small project extracting information from a remote git repository about heads and tags

What does it do?

It returns all branches for a given repository

Call

Post to /api/branches with the following payload:

{
  repository: "git@gitserver:test.git"
}

Result

Result will look like this:

{
  "options": [
      {
          "key": "master",
          "value": "master",
          "enabled": true,
          "image": "..."
      },
      {
          "key": "develop",
          "value": "develop",
          "enabled": true,
          "image": "..."
      },
      {
          "key": "feature/a",
          "value": "feature/a",
          "enabled": true,
          "image": "..."
      }
  ]
}

The service is thought to be used in conjunction with https://github.com/grundic/teamcity-web-parameters

How to start

gitbranch server --listen ":8080"

Credits

Images from https://www.shareicon.net/author/hub

History

Version Description
v1.0.0 Initial version

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