Robert Schilling
fb2fde9d62
API: Expose subscribed? on issues
2016-04-08 15:53:04 +02:00
Zeger-Jan van de Weg
3b088fc5b5
Minor improvements on IssuableActions
2016-03-21 16:59:35 +01:00
Zeger-Jan van de Weg
1d77822816
minor improvements and fixed specs
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
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
b91d1890a8
Pass current_user to merge_request.closes_issues in API ans streamline MR API specs
2016-02-11 09:34:07 +01:00
Gal Schlezinger and Rémy Coutable
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
Kirill Skachkov and Rémy Coutable
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
Douwe Maan
097faeb481
Get "Merge when build succeeds" to work when commits were pushed to MR target branch while builds were running
2016-01-05 16:30:03 +01:00
Zeger-Jan van de Weg
0e96d6eb10
Merge branch 'master' into merge-if-green
2015-12-07 10:06:07 +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
Zeger-Jan van de Weg
a7682f8775
Specs for 'Merge When Build Succeeds'
2015-12-02 13:27:16 +01:00
Zeger-Jan van de Weg
8608c6325e
Refactor MergeWhenBuildSucceedsService and incorporate feedback
2015-11-23 10:11:54 +01:00
Zeger-Jan van de Weg
2f048df4a4
API support, incorporated feedback
2015-11-18 11:17:41 +01:00
Dmitriy Zaporozhets
353ddbc795
Merge branch 'stanhu/gitlab-ce-fix-api-mr-comment-notifications'
2015-10-15 15:56:43 +02:00
sue445
a092d27025
[ci skip] Fix wrong comment
...
According to `attributes_for_keys` and API doc, `POST /projects/:id/merge_requests`
is received `target_project_id` (NOT `target_project`)
2015-10-14 00:36:54 +09:00
Stan Hu
2df573dac3
Fix bug where merge request comments created by API would not trigger notifications
...
Closes https://github.com/gitlabhq/gitlabhq/issues/9715
2015-10-10 10:59:02 -07:00
Stan Hu
1c289ac0c3
Fix broken sort in merge request API
...
Closes #2266
2015-09-15 22:55:22 -07:00
Dmitriy Zaporozhets
3e259ea8bc
Revert "Merge branch 'revert-satellites' into 'master'
"
...
This reverts commit 5daf44b7c8 , reversing
changes made to 2f706fbd23 .
2015-08-11 14:33:31 +02:00
Dmitriy Zaporozhets
9f10943c1a
Revert "Merge branch 'drop-satellites'"
...
This reverts commit 957e849f41 , reversing
changes made to 6b9dbe9f5a .
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-08-11 10:28:42 +02:00
Dmitriy Zaporozhets
b48b07044b
Merge branch 'master' into drop-satellites
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-08-04 16:42:36 +02:00
Dmitriy Zaporozhets
c17f5d06aa
Fix merge api and spec
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-08-04 16:33:53 +02:00
Stan Hu
6c9f527b3f
Return comments in created order in merge request API
...
Closes #1832
2015-07-16 22:33:58 -07:00
Dmitriy Zaporozhets
a7fded9b95
Huge refactoring for accepting merge requests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-16 16:03:07 +02:00
Dmitriy Zaporozhets
342d553709
Rename abilities to correspond contoller/model action names
...
write_ was renamed to create_
modify_ was renamed to update_
So now in update action we have next code
def create
can?(current_user, :create_issue, @issue)
end
def update
can?(current_user, :update_issue, @issue)
end
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-26 15:55:56 +02: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
Douwe Maan
7e0eb486ed
Don't allow a merge request to be merged when its title starts with "WIP".
2015-04-30 15:46:36 +02:00
Douwe Maan
4830b2be5e
Refactor GitAccess to use instance variables.
2015-03-24 14:11:48 +01:00
Dmitriy Zaporozhets
bdfb349ff7
Refactor and improve sorting objects in API for projects, issues and merge requests
2015-02-05 22:00:54 -08:00
Jeroen van Baarsen
b60d06eb2c
Added a way to retrieve MR files
...
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com >
2015-02-04 10:24:25 +01:00
Valery Sizov
ab7a79bf3b
developer can push to protected branches
2015-01-20 17:34:23 -08:00
Marin Jankovski
8dd672776e
Fix failing tests due to updates on the return messages.
2015-01-07 11:39:20 +01:00
Marin Jankovski
cd0aed3d54
Add a message when unable to save an object through api.
2015-01-07 10:46:00 +01:00
Dmitriy Zaporozhets
d0e3ab5826
Merge branch 'api/improve-error-reporting' of https://github.com/jubianchi/gitlabhq into jubianchi-api/improve-error-reporting
2014-09-23 21:35:45 +03:00
Marin Jankovski
685754b088
Fix typo in comment.
2014-09-16 08:44:50 +02:00
jubianchi
998cd3cb63
Improve error reporting on users API
...
* users (#6878 , #3526 , #4209 ): Validation error messages are now exposed through 400 responses, 409 response are sent in case of duplicate email or username
* MRs (#5335 ): 409 responses are sent in case of duplicate merge request (source/target branches), 422 responses are sent when submiting MR fo/from unrelated forks
* issues
* labels
* projects
2014-09-16 01:25:24 +02:00
Marin Jankovski
b99b2e60d5
Ordering and sorting for MR in api.
2014-09-15 11:54:49 +02:00
Robert Schilling
66f6ca0770
Fix tests after #7526
2014-08-20 20:34:55 +02:00
Robert Schilling
cbc90565b5
Do label validation for issues/merge requests API
2014-08-14 10:17:52 +02:00
Dmitriy Zaporozhets
d9d8d3b799
Fix old api compatibility and tests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-07-30 17:17:29 +03:00
Dmitriy Zaporozhets
f8ea52c3a0
Remove thread vars usage from API notes and mr's
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-10 17:56:35 +03:00
Dmitriy Zaporozhets
1f1c59b61d
Merge pull request #6778 from dblessing/feature/mr_labels
...
Merge Request Labels
2014-05-13 14:43:46 +03:00
Drew Blessing
5f25cdfe19
Implement Merge Request Labels
2014-05-13 06:41:36 -05:00
Dmitriy Zaporozhets
ab032256da
Add some tests for merge API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-13 11:01:40 +03:00
Dmitriy Zaporozhets
5880d7df62
Docs for merge api
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-12 18:01:22 +03:00
Dmitriy Zaporozhets
0c73e66643
Specify error codes for merge api
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-12 17:51:43 +03:00
Dmitriy Zaporozhets
fe6d392236
Draft API method for merge MR
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-12 16:34:41 +03:00
Stuart Pook
66209fbc76
Add optional parameter to list merge requests
...
Add an optional parameter to list merge requests to restrict the
returned merge requests to those that are "opened", "merged" or
"closed". By default all merge requests are returned. Note that
"all" can be given to explicitly request all merge requests.
2014-04-07 16:18:25 +02:00