A simple gitlab api client written in Go (golang)
Go Makefile
Pull request Compare This branch is 67 commits ahead, 49 commits behind fudanchii:master.
Permalink
Failed to load latest commit information.
examples commit comments example Aug 16, 2015
stubs manage comments on commits Aug 15, 2015
.gitignore Update doc Feb 15, 2014
.travis.yml Added .travis.yml Feb 13, 2015
Makefile Test with drone Sep 16, 2014
README.md playing with comments on a merge request Aug 15, 2015
deploy_keys.go use const 'projects_search_url' instead of project_url_search_ids Jun 26, 2015
events.go Moved structures declarations to files, where they are actually used Mar 28, 2014
gitlab.go Drone service implementation Aug 30, 2015
gitlab_test.go Fix: go fmt Feb 15, 2014
helper_test.go Add raw version for ResourceUrl and buildAndExecRequest Mar 30, 2014
hook_payload.go Added futured hook values Aug 30, 2015
hook_payload_test.go Added more fields for repository Jul 26, 2015
hooks.go Add tag_push_events hook Jul 31, 2015
hooks_test.go Move hook testing to hook payload Jul 26, 2015
projects.go read and write comments on merge requests Aug 15, 2015
projects_test.go read and write comments on merge requests Aug 15, 2015
public_keys.go Renamed RemoveKey to DeleteKey Mar 28, 2014
public_keys_test.go Refactored all tests to use stubs Mar 28, 2014
repositories.go commit comments example Aug 16, 2015
repositories_test.go manage comments on commits Aug 15, 2015
services.go Drone service implementation Aug 30, 2015
session.go Update sesison Sep 16, 2014
session_test.go Update sesison Sep 16, 2014
users.go Fix users request paginate params Feb 18, 2015
users_test.go Fix users request paginate params Feb 18, 2015
util.go [BUG] Fix paramter encoding in url. Nov 21, 2014
util_test.go Fix parameters encoding Nov 21, 2014

README.md

go-gitlab-client

This is a fork of project https://github.com/plouc/go-gitlab-client

go-gitlab-client is a simple client written in golang to consume gitlab API.

Build Status

features

  • Session gitlab api doc

    • get session
  • Projects gitlab api doc

    • list projects
    • get single project
    • list project merge requests
    • list notes on merge requests
    • add comments to merge requests
  • Repositories gitlab api doc

    • list repository branches
    • get single repository branch
    • list project repository tags
    • list repository commits
    • list project hooks
    • add/get/edit/rm project hook
  • Users gitlab api doc

    • get single user
    • manage user keys
  • Deploy Keys gitlab api doc

    • list project deploy keys
    • add/get/rm project deploy key

Installation

To install go-gitlab-client, use go get:

go get github.com/bugagazavr/go-gitlab-client

Import the go-gitlab-client package into your code:

package whatever

import (
    "github.com/bugagazavr/go-gitlab-client"
)

Update

To update go-gitlab-client, use go get -u:

go get -u github.com/bugagazavr/go-gitlab-client

Documentation

Visit the docs at http://godoc.org/github.com/Bugagazavr/go-gitlab-client

Examples

You can play with the examples located in the examples directory