Commit Graph

56 Commits

Author SHA1 Message Date
GitLab Bot 1127990db8 Add latest changes from gitlab-org/gitlab@master 2020-06-22 03:08:17 +00:00
GitLab Bot 2e4d8b3449 Add latest changes from gitlab-org/gitlab@master 2020-04-28 03:09:53 +00:00
GitLab Bot f569792df8 Add latest changes from gitlab-org/gitlab@master 2020-04-27 18:09:41 +00:00
GitLab Bot f82d5dcab7 Add latest changes from gitlab-org/gitlab@master 2020-02-26 21:09:11 +00:00
GitLab Bot c8f773a859 Add latest changes from gitlab-org/gitlab@master 2020-01-30 21:08:47 +00:00
Oleg Zubchenko 5a8eaef42e Add git blame api 2019-07-26 19:27:32 +03:00
James Lopez 1c34a2a014
Use read_repository scope on read-only files API 2018-12-04 11:55:34 +01:00
Imre Farkas b1e070bf49
Fix API::Namespaces to accept namepaces with dots
It also renames the API::PROJECT_ENDPOINT_REQUIREMENTS constant to
API::NAMESPACE_OR_PROJECT_REQUIREMENTS
2018-11-28 12:54:11 +01:00
gfyoung 3836d69119 Enable frozen string in lib/api and lib/backup
Partially addresses #47424.

Had to make changes to spec files because
stubbing methods on frozen objects is a mess
in RSpec and leads to failures:

https://github.com/rspec/rspec-mocks/issues/1190
2018-09-29 21:04:50 -07:00
🙈 jacopo beschi 🙉 f2747f1ce0 Resolve "500 Internal Server Error: Cherrypick commit with empty branch name" 2018-09-11 22:02:09 +00:00
Robert Schilling 6dc4d1b52c Extend to PUT request 2018-08-21 12:30:22 +02:00
Robert Schilling ceaee58c49 API: Catch empty commit messages 2018-08-21 10:56:34 +02:00
Ahmet Demir 80f4e7575e Add SHA256 and HEAD on File API 2018-06-28 06:10:51 +00:00
Marc Siegfriedt f3b6c552f6 fix :file_path - add requirements: 2017-08-30 18:37:44 +00:00
Felipe Artur b7e9862004 Fix API responses when dealing with txt files 2017-08-15 11:32:48 -03:00
Douwe Maan d41479266d Add start_branch to files and commits APIs 2017-08-04 19:18:07 +02:00
Douwe Maan dbffaaa97e Blob#load_all_data! doesn’t need an argument 2017-06-07 14:28:33 -05:00
Roman Safronov 1110def8e2 Introduce optimistic locking support via optional parameter last_commit_id on File Update API 2017-06-06 13:55:29 +00:00
Douwe Maan d170133bde Refactor changing files in web UI 2017-04-20 00:37:44 +00:00
Rémy Coutable 63360adeae
Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced API routes
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-16 18:00:24 +01:00
Felipe Artur a61bb7cda3 Remove unecessary endpoint from repository, add compatibility endpoints for v3 and several improvements 2017-03-07 22:20:38 -03:00
Felipe Artur 9053d78e74 Update API endpoints for raw files 2017-03-07 21:15:47 -03:00
Robert Schilling 86c58687b2 Return 204 for delete endpoints 2017-02-28 08:32:38 +01:00
Oswaldo Ferreira c79bbe26ab Change branch_name param to branch throughout V4 API 2017-02-21 16:33:14 -03:00
Robert Schilling 01ea65e0e9 Paginate all endpoints that return an array 2017-02-16 15:32:01 +01:00
dixpac fa2339641f Rename Files::DeleteService to Files::DestroyService
Reason for renaming is to comply with naming convention of services in
codebase.
2017-02-10 18:22:18 +01:00
Lin Jen-Shin a639454032 Fix renaming 2017-01-07 00:31:11 +08:00
Yorick Peterse a1aa0d7829 Merge branch 'cache-last-commit-sha-for-path' into 'master'
Cache last commit id for path

See merge request !8098
2016-12-22 13:22:07 +00:00
Rémy Coutable 5652da8bb4 Allow unauthenticated access to Repositories Files API GET endpoints
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-20 16:11:09 +01:00
Hiroyuki Sato 1a59766d0c Merge two methods. 2016-12-20 22:43:59 +09:00
Hiroyuki Sato 1f19275719 Rename sha to id 2016-12-20 18:24:24 +09:00
Hiroyuki Sato b1ca2c7dd8 Use Repository#cache_last_commit_sha_for_path in API 2016-12-20 18:24:24 +09:00
Robert Schilling dd5f71138c Grapify the files API 2016-11-30 12:48:10 +01:00
Dan Dunckel ace1155396 Add optional 'author' param when making commits 2016-09-19 10:00:26 -07:00
Jacob Vosmaer 64c8ee47c9 WIP lazy blobs 2016-02-01 10:41:52 +01:00
Douwe Maan d9c82d679f Automatically fork a project when not allowed to edit a file. 2015-12-18 10:03:34 +01:00
Valery Sizov 1b8d324762 Add ability to fetch the commit ID of the last commit that actually touched a file 2015-11-02 17:07:06 +02: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 5daf44b7c8 Merge branch 'revert-satellites' into 'master'
Revert satellites

Return satellites to master for 7.14

We remove satellites in next release (8.0)

See merge request !1136
2015-08-11 12:27:38 +00:00
Dmitriy Zaporozhets b9b9fe70b8 Revert "Fix editing files via API"
This reverts commit 7bde6ae540.
2015-08-11 13:29:35 +02:00
Stan Hu c5648de230 Fix corrupted binary files when using API files endpoint
Add CHANGELOG for gitlab_git 7.2.9 updates

Closes #2219
2015-08-09 15:23:22 -07:00
Dmitriy Zaporozhets 7bde6ae540
Fix editing files via API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-06-05 17:16:51 +02:00
Douwe Maan 8ed7ac9d44 Use project.commit convenience method. 2015-04-24 12:29:36 +02:00
Vinnie Okada 5f232b5687 Improve error messages when file editing fails
Give more specific errors in API responses and web UI flash messages
when a file update fails.
2015-02-22 16:01:49 -07:00
Marin Jankovski ed464edabe Message for api files and groups. 2014-12-30 14:29:55 +01:00
Ciro Santilli 2d23522107 Use :message key, not :error for File::Service. 2014-10-13 20:55:09 +02:00
Nihad Abbasov dccfb374d3 fix permissions for files API 2014-06-06 06:58:20 +05:00
Dmitriy Zaporozhets ddbe978041
Complete api files CRUD
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-02-18 12:27:02 +02:00
Dmitriy Zaporozhets f0d2d28118 Merge branch 'refactoring/context_into_services' into 'master'
Refactoring context Into services

To prevent confusion where to write logic. Context or Service?
2014-01-17 09:47:47 +00:00
Dmitriy Zaporozhets efa10c819d
Replace context with service in lib
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-01-16 20:35:21 +02:00