Shinya Maeda
1d7c039072
Fix enum lists
2017-09-05 14:30:28 +09:00
Shinya Maeda
b1af1f268b
Fix enum wording
2017-09-05 14:30:28 +09:00
Shinya Maeda
dcf09d1144
Implement `failure_reason` on `ci_builds`
2017-09-05 14:30:28 +09:00
Shinya Maeda
d8478d166b
Fix spec
2017-09-03 23:49:11 +09:00
Robert Schilling
6a2ee0968e
API: Use defined project requirements
2017-08-31 14:57:47 +02:00
Kamil Trzcinski
6afff7c607
Fix head pipeline stored in merge request for external pipelines
2017-06-27 21:08:31 +02:00
Kamil Trzcinski
161af17c1b
Introduce source to pipeline entity
2017-05-31 14:17:49 +02: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
Grzegorz Bizon
74906f3dd8
Fix updaing commit status with optional attributes
...
Passing different optional attributes in case of updating an existing
commit status should not create a new commit status with the same name.
2017-03-01 13:59:15 +01:00
Douwe Maan
7d4b52b27d
Enable Style/WordArray
2017-02-23 09:32:41 -06:00
wendy0402
79ce7579bb
Make it possible to pass coverage value to commit status API
2017-02-14 09:32:25 +07:00
Grzegorz Bizon
9ce8aa31f2
Respond with validation errors in commit status API
...
If validation errors are present, include validation errors in the
commit status API payload, instead of depending on state machine errors
caused by invalid record.
2017-01-18 12:30:01 +01:00
Robert Schilling
74c8669b0a
Use the pagination helper in the API
2016-12-04 18:11:19 +01:00
Robert Schilling
9dfbfbb2d1
Don't convert data which already is the target type
2016-11-24 13:35:26 +01:00
Rémy Coutable
b4359fb24e
Don't use Hash#slice since it's not supported in Ruby 2.1
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-20 19:08:46 +02:00
Robert Schilling
c7282f8959
Grapify the commit status API
2016-10-19 12:46:27 +02:00
Kamil Trzcinski
46b83f0605
Fix an error where we were unable to create a CommitStatus for running state
2016-09-12 12:20:18 +02:00
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