Commit graph

22 commits

Author SHA1 Message Date
Lin Jen-Shin
4b559c9afb Reverse ref and sha in args and rename pipeline to pipeline_for 2016-08-11 17:26:04 +08:00
Robert Schilling
839aec1a61 Replace parse_boolean with to_boolean 2016-07-20 08:55:44 +02:00
Kamil Trzcinski
1556d4848d Track a user who created a pipeline 2016-07-15 17:42:27 +02:00
Kamil Trzcinski
1927a2d30b Rename all ci_commit[s] in application code to pipeline[s] 2016-06-03 16:27:50 +02:00
Kamil Trzcinski
9423547f61 Fix other places where we still use commit attribute of Build 2016-06-03 15:49:14 +02:00
Kamil Trzcinski
08baa9983e Use pipelines in context of Project 2016-06-03 13:34:03 +02:00
Kamil Trzcinski
021d3810c3 Rename Ci::Commit to Ci::Pipeline and rename some of the ci_commit to pipeline 2016-06-02 16:59:04 +02:00
Rémy Coutable
5589dcf8db Fix a few places where autoloading would fail
- Fix naming of API::CommitStatuses
- Ensure we use require_dependency instead of require
- Ensure the namespace is right in lib/api/api.rb, otherwise, we
  might require Grape::API::Helpers which defines the `#params` method.
  This is to avoid requiring a file multiple times and getting an "Already
  initialized constant" error.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-05-10 11:51:19 +02:00
Kamil Trzcinski
1c5b172abb Write specs for this feature 2016-04-16 22:43:40 +02:00
Kamil Trzcinski
af7214d0f0 Fix specs 2016-04-11 23:32:55 +02:00
Kamil Trzcinski
5d69f5b46d Use Ci::Commit as Pipeline 2016-04-11 23:32:54 +02: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
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