Commit 055ffe6f authored by Stephen Meriwether's avatar Stephen Meriwether Committed by Sander van Harmelen

Update MergeRequest URLs to match spec (#134)

Updated:
- GetMergeRequest
- GetMergeRequestChanges
- UpdateMergeRequest
- AcceptMergeRequest
parent 9d3e9194
......@@ -148,7 +148,7 @@ func (s *MergeRequestsService) GetMergeRequest(pid interface{}, mergeRequest int
if err != nil {
return nil, nil, err
}
u := fmt.Sprintf("projects/%s/merge_request/%d", url.QueryEscape(project), mergeRequest)
u := fmt.Sprintf("projects/%s/merge_requests/%d", url.QueryEscape(project), mergeRequest)
req, err := s.client.NewRequest("GET", u, nil)
if err != nil {
......@@ -199,7 +199,7 @@ func (s *MergeRequestsService) GetMergeRequestChanges(pid interface{}, mergeRequ
if err != nil {
return nil, nil, err
}
u := fmt.Sprintf("projects/%s/merge_request/%d/changes", url.QueryEscape(project), mergeRequest)
u := fmt.Sprintf("projects/%s/merge_requests/%d/changes", url.QueryEscape(project), mergeRequest)
req, err := s.client.NewRequest("GET", u, nil)
if err != nil {
......@@ -276,7 +276,7 @@ func (s *MergeRequestsService) UpdateMergeRequest(pid interface{}, mergeRequest
if err != nil {
return nil, nil, err
}
u := fmt.Sprintf("projects/%s/merge_request/%d", url.QueryEscape(project), mergeRequest)
u := fmt.Sprintf("projects/%s/merge_requests/%d", url.QueryEscape(project), mergeRequest)
req, err := s.client.NewRequest("PUT", u, opt)
if err != nil {
......@@ -316,7 +316,7 @@ func (s *MergeRequestsService) AcceptMergeRequest(pid interface{}, mergeRequest
if err != nil {
return nil, nil, err
}
u := fmt.Sprintf("projects/%s/merge_request/%d/merge", url.QueryEscape(project), mergeRequest)
u := fmt.Sprintf("projects/%s/merge_requests/%d/merge", url.QueryEscape(project), mergeRequest)
req, err := s.client.NewRequest("PUT", u, opt)
if err != nil {
......
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