Public Repository

Last pushed: 5 months ago
Short Description
Provide a list of branches and tags for a given repository through rest api
Full Description

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
Docker Pull Command
Owner
briefbote

Comments (0)