Commit graph

11 commits

Author SHA1 Message Date
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
Kamil Trzcinski
055afab5c7 Make the CI permission model simpler
This MR simplifies CI permission model:
- read_build: allows to read a list of builds, artifacts and trace
- update_build: allows to cancel and retry builds
- create_build: allows to create builds from gitlab-ci.yml (not yet implemented)
- admin_build: allows to manage triggers, runners and variables
- read_commit_status: allows to read a list of commit statuses (including the overall of builds)
- create_commit_status: allows to create a new commit status using API

Remove all extra methods to manage permission.
Made all controllers to use explicitly the new permissions.
2016-02-02 09:18:08 +01:00
Kamil Trzcinski
e80e3f5372 Migrate CI::Project to Project 2015-12-11 18:02:09 +01:00
Kamil Trzcinski
daca1c6511 Fix broken tests 2015-10-12 22:32:29 +02:00
Kamil Trzcinski
789fe7b489 Update rendering 2015-10-12 16:32:58 +02:00
Kamil Trzcinski
69c04498ef Small bug fixes 2015-10-12 15:55:12 +02:00
Kamil Trzcinski
0aefeeb882 Add Commit Status documentation 2015-10-12 12:42:27 +02:00
Kamil Trzcinski
7ef156a242 Add author to statuses 2015-10-12 12:16:55 +02:00
Kamil Trzcinski
887494761e Fix commit status POST URL 2015-10-12 12:15:35 +02:00
Kamil Trzcinski
914cfbd2f1 Implement Commit Status API 2015-10-12 11:53:49 +02:00