Marin Jankovski
3e875b05b4
Merge remote-tracking branch 'ce/master' into merge_ce
...
Conflicts:
Gemfile
Gemfile.lock
app/assets/javascripts/project_new.js.coffee
app/controllers/projects_controller.rb
app/models/group.rb
app/models/project.rb
app/models/project_services/jira_service.rb
app/models/project_team.rb
app/models/user.rb
app/services/files/create_service.rb
app/views/layouts/nav/_admin.html.haml
config/routes.rb
db/schema.rb
spec/models/jira_service_spec.rb
spec/requests/api/projects_spec.rb
2015-01-29 11:34:43 -08:00
Dmitriy Zaporozhets
3af2ac9df0
Merge branch 'wip-documentation' into 'master'
...
Add return value example to ssh key creation
See merge request !307
2015-01-25 04:38:39 +00:00
Dmitriy Zaporozhets
e49b636497
Merge branch 'feature_api_project_edit' into 'master'
...
API: Implement edit via API for projects
I've picked up https://github.com/gitlabhq/gitlabhq/pull/8055 fixed the few hound warnings and replaced all double quotes in the spec file where possible.
# From the original PR:
Implements edit via API for projects. Edit was part of missing features in feature request Full CRUD operations via API for projects.
http://feedback.gitlab.com/forums/176466-general/suggestions/3904506-full-crud-operations-via-api-for-projects
Feature is implemented using existing UpdateService for projects. Permission to change visibility level and name are checked in addition to check for permission to administer project.
Doesn't allow updating project namespace id, because there was existing API-method for transferring project to a group.
Documentation added to doc/api/projects.md. Uses API request PUT /projects/:id .
Tests included for:
1. Success for changing path
2. Success for changing name
3. Success for changing visibility level
4. Success for changing all other attributes
5. Success for changing name & path to existing name & path but in different namespace
6. Failure if not authenticated
7. Failure if path exists in project's namespace
8. Failure if name exists in project's namespace
9. Failure if not sufficient permission to change name
10. Failure if not sufficient permission to change visibility level
11. Failure if not sufficient permission to change other attributes
Allows updating following parameters:
* name
* path
* visibility_level
* public
* default_branch
* issues_enabled
* wiki_enabled
* snippets_enabled
* merge_requests_enabled
* description
See merge request !310
2015-01-22 23:02:50 +00:00
Mika Mäenpää and Hannes Rosenögger
7dd5656a5b
Implement edit via API for projects
2015-01-22 16:58:01 +01:00
Hannes Rosenögger
e03f1af00a
Fix the test and add documentation for the "per-milestone issues API call"
2015-01-22 12:14:53 +01:00
Dmitriy Zaporozhets
2bfd4f4438
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
...
Conflicts:
VERSION
config/gitlab.yml.example
config/initializers/1_settings.rb
lib/api/entities.rb
lib/api/groups.rb
2015-01-21 17:05:31 -08:00
Loic Dachary
d9b946fb3e
Document ssh key creation error
...
Add the error code returned in the headers as well as an example of the
JSON informative message returned in the body.
Signed-off-by: Loic Dachary <loic@dachary.org >
2015-01-21 19:08:15 +01:00
Loic Dachary
201b2f1099
Add return value example to ssh key creation
...
Signed-off-by: Loic Dachary <loic@dachary.org >
2015-01-21 18:57:54 +01:00
Dmitriy Zaporozhets
ad18f91e9e
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
2015-01-18 10:52:53 -08:00
Loic Dachary
5bd463c1d2
Add description to merge request
...
The description can be provided when creating or updating a merge
request.
Signed-off-by: Loic Dachary <loic@dachary.org >
2015-01-18 14:09:56 +01:00
Daniel Serodio
ad18fcd0e6
Document the description attribute of groups API
2015-01-16 16:52:48 -02:00
Valery Sizov
badfdf6634
Merge remote-tracking branch 'ee/master' into ce-non-conflict
...
Conflicts:
app/controllers/projects/merge_requests_controller.rb
app/helpers/projects_helper.rb
db/schema.rb
2015-01-13 18:22:38 -08:00
Valery Sizov
f07b165ab7
OAuth API documentation update
2015-01-12 19:29:06 -08:00
Marin Jankovski
8689ce1efe
Add search filter option on project api for authorized projects.
2015-01-12 11:08:53 +01:00
Dmitriy Zaporozhets
3a9682a3d7
Merge dev.gitlab.org:gitlab/gitlabhq into upstream-ce
...
Conflicts:
VERSION
app/helpers/selects_helper.rb
app/models/project.rb
app/views/devise/sessions/new.html.haml
app/views/groups/_settings_nav.html.haml
app/views/layouts/nav/_admin.html.haml
app/views/profiles/keys/_key.html.haml
app/views/profiles/keys/index.html.haml
app/views/profiles/keys/show.html.haml
app/views/projects/merge_requests/show/_mr_accept.html.haml
config/routes.rb
db/schema.rb
doc/api/projects.md
features/steps/shared/paths.rb
2015-01-08 20:37:35 -08:00
Dmitriy Zaporozhets
2660e83c97
Add group filtering by name for API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-12-30 11:46:47 +02:00
Dmitriy Zaporozhets
bbcb70a9dc
Add group filtering by name for API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-12-30 11:30:56 +02:00
Dmitriy Zaporozhets
a9cf84e5ac
Merge pull request #7675 from yglukhov/patch_notes_api
...
Implemented notes (body) patching in API.
2014-12-29 21:06:49 +02:00
Stephan van Leeuwen
6b50721946
Updated projects api to allow ordering
...
Added support for order_by and sort parameters, to sort the projects by the specified values.
Updated projects api documentation including the order_by and sort parameters
2014-12-29 16:36:56 +01:00
uran and yglukhov
1fbc010241
Implemented notes (body) patching in API.
2014-12-25 14:28:40 +02:00
Dmitriy Zaporozhets
3bd66989de
Merge branch 'master' into ee-master
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
Gemfile
Gemfile.lock
VERSION
app/models/project.rb
app/models/user.rb
db/schema.rb
doc/install/installation.md
doc/update/6.x-or-7.x-to-7.5.md
doc/update/7.4-to-7.5.md
lib/gitlab/git_access.rb
spec/factories.rb
spec/lib/gitlab/git_access_spec.rb
2014-12-05 13:28:32 +02:00
Daniel Serodio
1016acc609
Small improvement to /api/user/keys doc
...
The keys resource includes a create_at attribute
2014-11-18 10:59:04 -02:00
Valery Sizov
3fcd75a911
Merge CE master into EE master
...
Conflicts:
Gemfile
VERSION
app/assets/javascripts/project.js.coffee
app/assets/javascripts/users_select.js.coffee
app/controllers/projects/services_controller.rb
app/models/project.rb
app/views/groups/edit.html.haml
features/project/service.feature
features/steps/project/services.rb
spec/models/concerns/mentionable_spec.rb
2014-11-13 17:05:12 +02:00
Dmitriy Zaporozhets
940ed58e76
Merge branch 'commit-comments' of https://gitlab.com/jeroenj/gitlab-ce into jeroenj/gitlab-ce-commit-comments
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
CHANGELOG
2014-11-12 13:19:35 +02:00
Valeriy Sizov
24276ed836
Merge pull request #8224 from liammonahan/master
...
Expose projects_limit through users API if UserFull.
2014-11-04 17:33:20 +02:00
Marin Jankovski
aee567376d
Update api documentation with git hooks.
2014-11-03 15:21:14 +01:00
Liam Monahan
2edf212a8b
Expose projects_limit through users API if UserFull.
2014-11-02 18:51:34 -05:00
Dmitriy Zaporozhets
ef9f8677e6
Expose author username in project events API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-10-31 12:08:45 +02:00
Dmitriy Zaporozhets
aa75a755ee
Merge branch 'api-delete-branch-json' into 'master'
...
Api delete branch json
Fixes gitlab/gitlabhq#1478
See merge request !1233
2014-10-31 09:38:24 +00:00
Dmitriy Zaporozhets
20e04d9f39
Delete branch via API: doc updated
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-10-30 17:30:09 +02:00
Sean Edge
822d9aa6ba
Create RepoTag Grape entity and present it when doing stuff with tags via API. Update API doc for repositories. Add tag message to tag list page in UI. Update Changelog. Update spec to set .gitconfig identity, required for annotated tags.
2014-10-30 09:48:23 -04:00
Job van der Voort
6704792933
link third applications to website
2014-10-23 11:11:53 +02:00
Kevin Houdebert
62b322d7b5
Add Hipchat services API
2014-10-14 19:07:34 +02:00
Kirill Zaitsev
b4963e9dda
Add tag_push_events to project hook api
2014-10-03 10:23:32 +04:00
Bernhard Kaindl
f030ee846e
API: Initial support for forking a project via the API
...
This change adds POST /projects/fork/:id to the API for forking
a project into the namespace of the authenticated user, like the
"create fork" link in the GUI does. It also calls the same code.
Failure and permission checks (except for conflict) are already
implemented and handled in ForkService and the API, so the added
code is simple and does not alter anything.
2014-10-01 10:27:48 +02:00
jubianchi
f258a59ef6
Filters issues by milestone via API
2014-09-26 22:03:37 +02:00
Jeroen Jacobs
430758653c
Adds comments to commits in the API
2014-09-26 10:58:11 +02: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
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
Dmitriy Zaporozhets
8c765aaf3f
Update project api docs
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-09-09 10:52:30 +03:00
Sean Edge
468b2e8e0b
Added annotated tags. Updated tag haml file and call to gitlab-shell. Updated API for annotated tags. Added tests for API. Strip leading/trailing whitespace from message, if present. Update CHANGELOG.
2014-09-04 09:47:20 -04:00
Dmitriy Zaporozhets
260fd2127c
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
2014-09-04 15:55:14 +03:00
jubianchi and jubianchi
0ac4a933ff
Filters issues by labels via API
2014-09-04 14:41:31 +02:00
Robert Schilling
392113919a
Validate tag-names and references in WebUI, API
2014-09-03 13:08:36 +02:00
Robert Schilling
551145bc98
Validate branch-names and references in WebUI, API
...
Add specs for GitRefValidator
2014-09-03 13:08:35 +02:00
jubianchi and jubianchi
4fdd21685c
Filters issues by state via API
2014-09-01 13:51:40 +02:00
Jacob Vosmaer
6dc24e3bcf
Merge pull request #7527 from Razer6/api_labels_return_code
...
API: Fix labels return code
2014-08-18 17:16:32 +02:00
Robert Schilling
4ca3f64719
Fix labels return code
2014-08-18 00:25:49 +02:00
Jeroen van Baarsen
54c2083703
Merge pull request #7509 from cirosantilli/fix-md-style-api
...
Fix Md style for API.
2014-08-15 17:14:27 +02:00