Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
1374845d
Commit
1374845d
authored
Aug 21, 2017
by
Sander van Harmelen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup PR #190
parent
331a5ff8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
tags.go
tags.go
+11
-8
No files found.
tags.go
View file @
1374845d
...
...
@@ -36,13 +36,16 @@ type TagsService struct {
// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/tags.md
type
Tag
struct
{
Commit
*
Commit
`json:"commit"`
Name
string
`json:"name"`
Message
string
`json:"message"`
ReleaseDescription
string
`json:"release_description"`
Release
struct
{
TagName
string
`json:"tag_name"`
Description
string
`json:"description"`
}
`json:"release"`
Name
string
`json:"name"`
Message
string
`json:"message"`
}
func
(
r
Tag
)
String
()
string
{
return
Stringify
(
r
)
func
(
t
Tag
)
String
()
string
{
return
Stringify
(
t
)
}
// 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)
// GitLab API docs:
// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/tags.md#create-a-new-tag
type
CreateTagOptions
struct
{
TagName
*
string
`url:"tag_name,omitempty" json:"tag_name,omitempty"`
Ref
*
string
`url:"ref,omitempty" json:"ref,omitempty"`
Message
*
string
`url:"message,omitempty" json:"message,omitempty"`
TagName
*
string
`url:"tag_name,omitempty" json:"tag_name,omitempty"`
Ref
*
string
`url:"ref,omitempty" json:"ref,omitempty"`
Message
*
string
`url:"message,omitempty" json:"message,omitempty"`
ReleaseDescription
*
string
`url:"release_description:omitempty" json:"release_description,omitempty"`
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment