Jacob Vosmaer
1764e1b7cb
Use Gitlab::Git::DiffCollections
2016-03-03 18:38:44 +01:00
Douwe Maan
9b3c1a8c4f
Merge branch 'fix/commit-status-api-improvement' into 'master'
...
Return empty array when commit has no statuses in API
This makes API endpoint for Commit Statuses return empty array instead
of 404 when commit exists, but has no statuses.
Closes #3080
See merge request !3010
2016-03-01 16:50:23 +00:00
Grzegorz Bizon
85a461e096
Check if commit exists first in commit status API
2016-03-01 11:11:50 +01:00
Grzegorz Bizon
dcc67ac1fd
Return empty array when commit has no statuses in API
...
This makes API endpoint for Commit Statuses return empty array instead
of 404 when commit exists, but has no statuses.
Closes #3080
2016-02-29 13:54:33 +01:00
James Lopez
c401e8338b
updated internal.rb and spec based on MR feedback
2016-02-26 10:40:30 +01:00
James Lopez
d377948931
fix for projects ending in .wiki
2016-02-24 15:54:36 +01:00
Kamil Trzcinski
46fd485c58
Fix API implementation
2016-02-19 18:30:43 +01:00
Kamil Trzcinski
921cfb66e6
Introduce API for serving the artifacts archive
2016-02-19 18:30:13 +01:00
Grzegorz Bizon
73c9d80bdc
Record user that erased a build through API
2016-02-19 17:24:59 +01:00
Grzegorz Bizon
7d5a182624
Use POST method instead of DELETE when erasing a build
...
Discussion:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2560#note_3742042
2016-02-19 17:24:59 +01:00
Grzegorz Bizon
287cc838ce
Fix build api specs after rebase
2016-02-19 17:24:59 +01:00
Grzegorz Bizon
293999cabb
Fix name of build erasable, remove superfluous method from it
2016-02-19 17:24:59 +01:00
Grzegorz Bizon and Grzegorz Bizon
13f92521c2
Move build eraseable API to proper API context
2016-02-19 17:24:59 +01:00
Tomasz Maczukin
f2f6f77328
Rename Entities::ForkedFromProject to Entities::BasicProjectDetails
2016-02-19 13:18:49 +01:00
Tomasz Maczukin
e4d2f9972c
Change last_contact to contacted_at
2016-02-19 13:18:49 +01:00
Tomasz Maczukin
7ea60c8564
Replace Entities::RunnerProjectDetails with Entities::ForkedFromProject
2016-02-19 13:18:49 +01:00
Tomasz Maczukin
4ebadb77dd
iChange name and path to name_with_namespace and path_with_namespace in RunnerProjectDetails
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
b36116f9ad
Move :runner_id param to POST body when enabling specific runner in project
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
d1ac00aea3
Modify and fix output of delete and update of a runner
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
24eed1c5c1
Modify runner projects selecting method in runners API
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
36e7ffea5d
Fix runners filtering
2016-02-19 13:18:47 +01:00
Tomasz Maczukin
f21b15d5f5
Limit projects to user available projects if user is not an admin
2016-02-19 13:18:47 +01:00
Tomasz Maczukin
b58744cd93
Modify authentication check methods in runners API
2016-02-19 13:18:47 +01:00
Tomasz Maczukin
553bac57d0
Add token to runner details output in API
2016-02-19 13:18:47 +01:00
Tomasz Maczukin
f562a477f2
Add associated project info to runner details output
2016-02-19 13:18:47 +01:00
Tomasz Maczukin
81ced6f55b
Split /runners entrypoint to /runners and /runners/all
2016-02-19 13:18:47 +01:00
Tomasz Maczukin
b56ee397bb
Add some fixes in runners API documentation
2016-02-19 13:18:46 +01:00
Tomasz Maczukin
53f775ae6d
Fix runners filtering in API
2016-02-19 13:18:46 +01:00
Tomasz Maczukin
8c37f0ff30
Add missing methods documentation; fix rubocop reported violation
2016-02-19 13:18:46 +01:00
Tomasz Maczukin
d42ced44d9
Add feature to enable/disable runner in project
2016-02-19 13:18:46 +01:00
Tomasz Maczukin
128be3c010
Add basic runners management API
...
- add feature to list runners
- add feature to show runners details
- add feature to delete runner
- add feature to update runner
2016-02-19 13:18:46 +01:00
Jacob Vosmaer
a0ccb0731b
Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into git-archive-refactor
2016-02-17 11:30:42 +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
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
Jacob Vosmaer
34a6f83d3e
Fix API
2016-02-11 18:10:14 +01: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
Robert Speicher
7ea60fbfc8
Merge remote-tracking branch 'dev/master' into 'master'
2016-02-09 12:13:58 -05:00
Andrei Dziahel and Rémy Coutable
86d15c1e9a
Expose MergeRequest::merge_status to API
2016-02-08 17:04:58 +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
Kamil Trzcinski
6fea7c386f
Merge remote-tracking branch 'origin/master' into ci-permissions
...
# Conflicts:
# app/views/projects/builds/index.html.haml
2016-02-04 13:16:48 +01:00
Kamil Trzcinski
b4c36130cc
Rename allow_guest_to_access_builds to public_builds
2016-02-04 12:57:46 +01:00
Kamil Trzcinski
6a5a175d9f
Expose allow_guest_to_access_builds in GitLab API
2016-02-04 11:14:12 +01:00
Robert Speicher
8a85906a74
Merge branch 'support-akismet' into 'master'
...
Support Akismet spam checking for creation of issues via API
Currently any spam detected by Akismet for non-members via API will
be logged in a separate table in the admin page.
Closes #5612
See merge request !2266
2016-02-03 01:26:30 +00:00
Jacob Vosmaer
752468d55b
Merge branch 'git-raw-workhorse' into 'master'
...
Send raw Git blobs via gitlab-workhorse
See merge request !2451
2016-02-02 17:22:04 +00:00
Dmitriy Zaporozhets
30313098a0
Merge branch 'Michi302/gitlab-ce-fix/pagination-links' into 'master'
...
Fix add_pagination_headers to keep request parameters in Link header
Originally opened at !2321 . Closes #5904 . /cc @Michi302
See merge request !2674
2016-02-02 16:04:08 +00:00
Michi302 and Rémy Coutable
c41a8be8d2
Fix add_pagination_headers to keep request parameters in Link header
2016-02-02 15:26:29 +01:00
Douglas Barbosa Alexandre
a2bbf00477
Refactor spam filtering on issues API
2016-02-02 11:25:44 -02:00
Stan Hu and Douglas Barbosa Alexandre
d20e75a8d8
Support Akismet spam checking for creation of issues via API
...
Currently any spam detected by Akismet by non-members via API will be logged
in a separate table in the admin page.
Closes #5612
2016-02-02 11:25:44 -02:00
Jacob Vosmaer
771f14b96e
First version of "git archive" headers
2016-02-02 14:09:55 +01:00