Ben Boeckel
9c3db830c0
entities: expose {,merge_commit_}sha in MergeRequest
...
Fixes #20456 .
2016-08-31 10:50:54 -04:00
Douwe Maan
bbd9a6fe40
Merge branch 'dz-merge-request-version'
2016-08-25 12:59:21 -05:00
Ben Boeckel
e43c4060b6
api: expose web_url for project entities
...
This allows web hooks to have a URL back to entities without having to
generate it themselves.
2016-08-24 10:32:31 -04:00
Dmitriy Zaporozhets
74461ccc1f
Fix merge request versions api doc
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-08-19 12:35:40 +03:00
Dmitriy Zaporozhets
5e95c0b8d2
Merge branch 'master' into dz-merge-request-version
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-08-15 17:27:22 +03:00
Dmitriy Zaporozhets
ac072132b8
Add single merge request diff API endpoint
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-08-12 14:44:49 +03:00
winniehell
e0a858efcc
use long options for curl examples in API documentation ( !5703 )
2016-08-09 01:42:50 +02:00
Dmitriy Zaporozhets
08f5f89788
Fix project id param for merge request version API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-08-03 12:35:20 +03:00
Dmitriy Zaporozhets
69096ad9da
Update merge request versions API to match styleguide
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-08-03 11:58:09 +03:00
Dmitriy Zaporozhets
9a5f40878c
Add API to list merge request diff versions
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-08-03 11:32:29 +03:00
Robert Schilling
af4a74cbef
Add iid to MR API response
2016-07-25 13:38:01 +02:00
Ben Boeckel
eac19b2893
api: expose {should,force}_remove_source_branch
...
Workflows which use a bot to merge should remove branches if requested.
Expose the flag so that bots can request know this.
2016-07-11 14:08:06 -04:00
Achilleas Pipinellis
92772f85c1
Merge branch 'api-docs-typos' into 'master'
...
Fix typos in API documentation
See merge request !4949
2016-07-09 15:15:20 +00:00
Alejandro Rodríguez
52008045e5
Fix typo in Merge Requests API documentation
2016-07-02 17:44:19 -04:00
Robert Schilling
87ac9c9850
Support creating a todo on issuables via API
2016-07-01 14:52:04 +02:00
Ben Boeckel
9e33ca1c0b
docs: fix some typos
2016-06-27 16:16:34 -04:00
Stan Hu
a85dde9182
Fix Error 500 when using closes_issues API with an external issue tracker
...
Closes #18484
2016-06-11 19:50:08 -07:00
Sean McGivern
d863d86aeb
Add `sha` parameter to MR accept API
...
The `sha` parameter is optional, and when present, must match the
current HEAD SHA of the source branch. Otherwise, the API call fails
with a 409 Conflict and a message containing the current HEAD for the
source branch.
Also tidy up some doc wording.
2016-06-01 20:29:54 +01:00
Rémy Coutable
f5240f9703
Expose MergeRequest#user_notes_count in the API and use the method in issues list
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-05-09 16:08:07 +02:00
Robert Schilling
a9200d93d3
Ensure that issues and merge requests are found
2016-04-13 17:15:42 +02:00
Robert Schilling
fa3009095f
Make subscription API more RESTful
2016-04-13 13:52:13 +02:00
Robert Schilling
f875189b39
API: Ability to subscribe and unsubscribe from a merge request
2016-04-13 13:45:01 +02:00
Robert Schilling
fb2fde9d62
API: Expose subscribed? on issues
2016-04-08 15:53:04 +02:00
Zeger-Jan van de Weg
d28a587e82
Fix typos and denting
2016-03-21 19:30:45 +01:00
Zeger-Jan van de Weg
3b088fc5b5
Minor improvements on IssuableActions
2016-03-21 16:59:35 +01:00
Zeger-Jan van de Weg
7342a4566c
Dry destroy action on issuables
2016-03-19 21:24:05 +01:00
Zeger-Jan van de Weg
212e83bab3
Soft delete issuables
2016-03-19 21:23:03 +01:00
bb-froggy
2af778c4fa
typo
2016-03-02 09:42:14 +00:00
Douwe Maan
0807bd5130
Merge branch 'skakirill/gitlab-ce-api-merge-request-setup-milestone' into 'master'
...
API: Allow to set or update a merge-request's milestone
_Originally opened at !2107 by @ skakirill._
- - -
See merge request !2755
2016-02-12 08:39:18 +00:00
Rémy Coutable
973a7d040e
Merge branch 'Schniz/gitlab-ce-feature/merge-request-closes-issues-in-api' into 'master'
...
Add merge_requests/:merge_request_id/closes_issues
_Originally opened at !2660 by @Schniz._
- - -
Added `/api/v3/projects/:id/merge_requests/:merge_request_id/closes_issues` route in the API for getting the issues that should be closed when a merge request merged successfully
See merge request !2779
2016-02-11 17:13:36 +00:00
Gal Schlezinger
78e36780be
Added '/api/v3/projects/:id/merge_requests/:merge_request_id/closes_issues' route in the API
...
Added some documentation for it
Added to changelog
Added curl example and an attribute table
Moved the api route definition from "lib/api/issues.rb" to "lib/api/merge_requests.rb"
Fixed the attributes and changed the documentation to be at "merge_requests.md" too
Changed generic titles to more specific titles
added an underscore
added tests. it depends on a newer version of gitlab-test project
I'm doing a since I need to add a branch to the `gitlab-test` repo
removed the before
using 'iid' instead of 'id' in the description to reference the issues. that makes the tests pass
Removed the 'closes-issues' key from test_env. so it should pass the tests
Moved the two initializations to the describe block
Changed the changelog
2016-02-11 09:34:07 +01:00
Rémy Coutable
f6a666bdc2
Add an API spec for MergeRequest#merge_status and properly document this resource
2016-02-08 17:18:44 +01:00
Kirill Skachkov
81f2a9e5b0
API: Allow to set or update a merge-request's milestone
2016-02-08 15:49:35 +01:00
Dmitriy Zaporozhets
dfb8803c1c
Improve consistency and duplication for Merge Request API
...
* Follow REST for merge request API route
* Remove repeating comments API for MR
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-01-28 14:26:12 +01:00
Valery Sizov
83d42c1518
Revert upvotes and downvotes params to MR API
2015-12-28 11:41:16 +02:00
Zeger-Jan van de Weg
0e96d6eb10
Merge branch 'master' into merge-if-green
2015-12-07 10:06:07 +01:00
Dmitriy Zaporozhets
c366e81da7
Improve docs
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-12-04 11:26:35 +01:00
Dmitriy Zaporozhets
0b68a0e79e
Add API endpoint to fetch merge request commits list
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-12-04 11:08:10 +01:00
Dmitriy Zaporozhets
0ccd7de7f3
Fix wrong doc in merge request API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-12-04 10:55:36 +01:00
Zeger-Jan van de Weg
8608c6325e
Refactor MergeWhenBuildSucceedsService and incorporate feedback
2015-11-23 10:11:54 +01:00
Robert Schilling
26b12e2c37
Add upvote/downvote fields to merge request and note API to preserve compatibility
2015-11-21 21:36:31 +01:00
Valery Sizov
fd2c0fe446
award emoji
2015-11-19 01:25:27 +02:00
Zeger-Jan van de Weg
2f048df4a4
API support, incorporated feedback
2015-11-18 11:17:41 +01:00
sue445
2297a7ba1f
[ci skip] Add missing parameters in API doc
2015-10-14 00:45:11 +09:00
Marin Jankovski
9b6f1c5948
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
2015-07-16 12:11:25 +02:00
Robin Burchell
6f581841d5
Remove author information from "post" in merge_requests API.
...
From both experimenting with the API and reading the source code, this appears to not be used at all.
My guess is this was copypasta from somewhere else.
2015-07-13 18:54:15 +02:00
Ben Boeckel
414cacd7f4
api: expose work_in_progress flag
2015-07-10 10:33:43 -04:00
Stan Hu
85145d1d77
Disable changing of the source branch in merge request update API
2015-05-29 09:40:35 -07:00
jubianchi
2c544d43c8
Query issues, merge requests and milestones with their IID through API
2015-05-02 10:44:52 +02:00
Stan Hu
fad71576f9
Fix cross references when usernames, milestones, or project names contain underscores.
...
Remove emphasis from system notes to avoid Markdown conflicts in names.
2015-03-19 07:07:30 -07:00