Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ea2008df
Commit
ea2008df
authored
Oct 13, 2015
by
Stan Hu
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9723 from sue445/tweak_api_doc
Tweak api doc
parents
e0072892
2297a7ba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
doc/api/merge_requests.md
doc/api/merge_requests.md
+2
-0
lib/api/merge_requests.rb
lib/api/merge_requests.rb
+1
-1
No files found.
doc/api/merge_requests.md
View file @
ea2008df
...
@@ -188,6 +188,7 @@ Parameters:
...
@@ -188,6 +188,7 @@ Parameters:
-
`title`
(required) - Title of MR
-
`title`
(required) - Title of MR
-
`description`
(optional) - Description of MR
-
`description`
(optional) - Description of MR
-
`target_project_id`
(optional) - The target project (numeric id)
-
`target_project_id`
(optional) - The target project (numeric id)
-
`labels`
(optional) - Labels for MR as a comma-separated list
```
json
```
json
{
{
...
@@ -239,6 +240,7 @@ Parameters:
...
@@ -239,6 +240,7 @@ Parameters:
-
`title`
- Title of MR
-
`title`
- Title of MR
-
`description`
- Description of MR
-
`description`
- Description of MR
-
`state_event`
- New state (close|reopen|merge)
-
`state_event`
- New state (close|reopen|merge)
-
`labels`
(optional) - Labels for MR as a comma-separated list
```
json
```
json
{
{
...
...
lib/api/merge_requests.rb
View file @
ea2008df
...
@@ -99,7 +99,7 @@ module API
...
@@ -99,7 +99,7 @@ module API
# id (required) - The ID of a project - this will be the source of the merge request
# id (required) - The ID of a project - this will be the source of the merge request
# source_branch (required) - The source branch
# source_branch (required) - The source branch
# target_branch (required) - The target branch
# target_branch (required) - The target branch
# target_project
- The target project of the merge request defaults to the :id of the project
# target_project
_id
- The target project of the merge request defaults to the :id of the project
# assignee_id - Assignee user ID
# assignee_id - Assignee user ID
# title (required) - Title of MR
# title (required) - Title of MR
# description - Description of MR
# description - Description of MR
...
...
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