2015-07-26 23:25:20 +00:00
|
|
|
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](https://travis-ci.org/Bugagazavr/go-gitlab-client.svg?branch=master)](https://travis-ci.org/Bugagazavr/go-gitlab-client)
|
|
|
|
|
|
|
|
|
|
|
|
##features
|
|
|
|
|
|
|
|
*
|
|
|
|
###Session [gitlab api doc](http://doc.gitlab.com/ce/api/session.html)
|
|
|
|
* get session
|
|
|
|
|
|
|
|
*
|
|
|
|
###Projects [gitlab api doc](http://doc.gitlab.com/ce/api/projects.html)
|
|
|
|
* list projects
|
|
|
|
* get single project
|
2015-08-22 03:32:22 +00:00
|
|
|
* list project merge requests
|
|
|
|
* list notes on merge requests
|
|
|
|
* add comments to merge requests
|
2015-07-26 23:25:20 +00:00
|
|
|
|
|
|
|
*
|
|
|
|
###Repositories [gitlab api doc](http://doc.gitlab.com/ce/api/repositories.html)
|
|
|
|
* 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](http://doc.gitlab.com/ce/api/users.html)
|
|
|
|
* get single user
|
|
|
|
* manage user keys
|
|
|
|
|
|
|
|
*
|
|
|
|
###Deploy Keys [gitlab api doc](http://doc.gitlab.com/ce/api/deploy_keys.html)
|
|
|
|
* 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:
|
|
|
|
|
|
|
|
```go
|
|
|
|
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
|
|
|
|
|
|
|
|
* [projects](https://github.com/Bugagazavr/go-gitlab-client/tree/master/examples/projects)
|
|
|
|
* [repositories](https://github.com/Bugagazavr/go-gitlab-client/tree/master/examples/repositories)
|