Commit b2112619 authored by Sander van Harmelen's avatar Sander van Harmelen Committed by GitHub

Merge pull request #54 from ulrichSchreiner/master

additional fields in Gitlab
parents aa5db79a a5bbf613
......@@ -35,6 +35,10 @@ type LabelsService struct {
type Label struct {
Name string `json:"name"`
Color string `json:"color"`
Description string `json:"description"`
OpenIssuesCount int `json:"open_issues_count"`
ClosedIssuesCount int `json:"closed_issues_count"`
OpenMergeRequestsCount int `json:"open_merge_requests_count"`
}
func (l Label) String() string {
......@@ -71,6 +75,7 @@ func (s *LabelsService) ListLabels(pid interface{}) ([]*Label, *Response, error)
type CreateLabelOptions struct {
Name string `url:"name,omitempty" json:"name,omitempty"`
Color string `url:"color,omitempty" json:"color,omitempty"`
Description string `url:"description,omitempty" json:"description,omitempty"`
}
// CreateLabel creates a new label for given repository with given name and
......@@ -137,6 +142,7 @@ type UpdateLabelOptions struct {
Name string `url:"name,omitempty" json:"name,omitempty"`
NewName string `url:"new_name,omitempty" json:"new_name,omitempty"`
Color string `url:"color,omitempty" json:"color,omitempty"`
Description string `url:"description,omitempty" json:"description,omitempty"`
}
// UpdateLabel updates an existing label with new name or now color. At least
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment