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
261b930b
Commit
261b930b
authored
Dec 19, 2015
by
Martin Sefcik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed failing tests
parent
a35ee8f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
commits.go
commits.go
+6
-6
commits_test.go
commits_test.go
+1
-1
No files found.
commits.go
View file @
261b930b
...
...
@@ -307,12 +307,12 @@ func (s *CommitsService) GetCommitStatuses(
//
// GitLab API docs: http://doc.gitlab.com/ce/api/commits.html#post-the-status-to-commit
type
SetCommitStatusOptions
struct
{
State
BuildState
`url:"state"`
Ref
string
`url:"ref,omitempty"`
Name
string
`url:"name,omitempty"`
Context
string
`url:"context,omitempty"`
TargetUrl
string
`url:"target_url,omitempty"`
Description
string
`url:"description,omitempty"`
State
BuildState
`url:"state"
json:"state"
`
Ref
string
`url:"ref,omitempty"
json:"ref,omitempty"
`
Name
string
`url:"name,omitempty"
json:"name,omitempty"
`
Context
string
`url:"context,omitempty"
json:"context,omitempty"
`
TargetUrl
string
`url:"target_url,omitempty"
json:"target_url,omitempty"
`
Description
string
`url:"description,omitempty"
json:"description,omitempty"
`
}
type
BuildState
string
...
...
commits_test.go
View file @
261b930b
...
...
@@ -41,7 +41,7 @@ func TestSetCommitStatus(t *testing.T) {
mux
.
HandleFunc
(
"/projects/1/statuses/b0b3a907f41409829b307a28b82fdbd552ee5a27"
,
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
testMethod
(
t
,
r
,
"POST"
)
test
FormValues
(
t
,
r
,
values
{
test
JsonBody
(
t
,
r
,
values
{
"state"
:
"running"
,
"ref"
:
"master"
,
"name"
:
"ci/jenkins"
,
...
...
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