Commit 1374845d authored by Sander van Harmelen's avatar Sander van Harmelen

Fixup PR #190

parent 331a5ff8
...@@ -36,13 +36,16 @@ type TagsService struct { ...@@ -36,13 +36,16 @@ type TagsService struct {
// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/tags.md // https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/tags.md
type Tag struct { type Tag struct {
Commit *Commit `json:"commit"` Commit *Commit `json:"commit"`
Name string `json:"name"` Release struct {
Message string `json:"message"` TagName string `json:"tag_name"`
ReleaseDescription string `json:"release_description"` Description string `json:"description"`
} `json:"release"`
Name string `json:"name"`
Message string `json:"message"`
} }
func (r Tag) String() string { func (t Tag) String() string {
return Stringify(r) return Stringify(t)
} }
// ListTags gets a list of tags from a project, sorted by name in reverse // ListTags gets a list of tags from a project, sorted by name in reverse
...@@ -102,9 +105,9 @@ func (s *TagsService) GetTag(pid interface{}, tag string, options ...OptionFunc) ...@@ -102,9 +105,9 @@ func (s *TagsService) GetTag(pid interface{}, tag string, options ...OptionFunc)
// GitLab API docs: // GitLab API docs:
// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/tags.md#create-a-new-tag // https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/tags.md#create-a-new-tag
type CreateTagOptions struct { type CreateTagOptions struct {
TagName *string `url:"tag_name,omitempty" json:"tag_name,omitempty"` TagName *string `url:"tag_name,omitempty" json:"tag_name,omitempty"`
Ref *string `url:"ref,omitempty" json:"ref,omitempty"` Ref *string `url:"ref,omitempty" json:"ref,omitempty"`
Message *string `url:"message,omitempty" json:"message,omitempty"` Message *string `url:"message,omitempty" json:"message,omitempty"`
ReleaseDescription *string `url:"release_description:omitempty" json:"release_description,omitempty"` ReleaseDescription *string `url:"release_description:omitempty" json:"release_description,omitempty"`
} }
......
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