plouc / go-gitlab-client Goto Github PK
View Code? Open in Web Editor NEWA Go gitlab API client & powerful CLI written in Go
License: MIT License
A Go gitlab API client & powerful CLI written in Go
License: MIT License
https://github.com/plouc/go-gitlab-client/blob/master/projects.go#L74
It says project path (namespace + project name) has to be passed with delimiter escaped (/
=> %2F
), but we can do that automatically with QueryEscape
from net/url
.
Can make a PR.
We need to support the pagination http://doc.gitlab.com/ee/api/#pagination as for now any list will be truncated which make the API useless as is.
First off, this project has been a life saver! I started writing something similar for my small project but that started getting too big. I ran into a bit of an issue try to get commit refs
According to the docs the response from GET /projects/:id/repository/commits/:sha/refs
looks like this:
[
{"type": "branch", "name": "'test'"},
{"type": "branch", "name": "add-balsamiq-file"},
{"type": "branch", "name": "wip"},
{"type": "tag", "name": "v1.1.0"}
]
Which is not the same as CommitRef{}
:
type CommitRef struct {
Id string `json:"id" yaml:"id"`
Sha string `json:"sha" yaml:"sha"`
Type string `json:"type" yaml:"type"`
}
I'd be happy to make a pull request with an accurate struct. Thanks! :)
It seems Gitlab emits an event with the project_id as an int64, but the AddProjectWebhook takes an id of type string https://github.com/plouc/go-gitlab-client/blob/master/hooks.go#L91
Any particular reason why it was done this way or can I go ahead and do a PR with the fix?
Hi
I would like to use this library, could you add a license?
I'd choose MIT: http://choosealicense.com/licenses/mit/
Could you add a function to fetch information on a specific issue?
Also interested in pull requests :)
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.