GitLab Bot
c8f773a859
Add latest changes from gitlab-org/gitlab@master
2020-01-30 21:08:47 +00:00
GitLab Bot
e4ea43b2b8
Add latest changes from gitlab-org/gitlab@master
2020-01-27 21:08:47 +00:00
GitLab Bot
511e761b41
Add latest changes from gitlab-org/gitlab@master
2020-01-03 15:08:33 +00:00
GitLab Bot
25989ab7ef
Add latest changes from gitlab-org/gitlab@master
2019-10-18 11:11:44 +00:00
Matija Čupić
41b8dca877
Add specs for specifying pipeline behavior
...
Adds specs for testing the new behavior of specifying a pipeline when
POSTing a status.
2019-07-23 12:02:07 +02:00
Gaetan Semet
4e814c257b
Multiple pipeline support for Build status
...
This allows user to specify the pipeline ID
when several pipelines has been triggered
on the same branch and commit.
Signed-off-by: Gaetan Semet <gaetan.semet@renault.com>
2019-07-17 14:43:15 +02:00
Jasper Maes
c8d1ca7a5a
Fix deprecation: Passing ActiveRecord::Base objects to sanitize_sql_hash_for_assignment
2018-12-13 21:48:43 +01:00
Francisco Javier López
a6778fc647
Rename project's pipelines relation
2018-12-05 14:39:15 +00: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
Yorick Peterse
2039c8280d
Disable existing offenses for the CodeReuse cops
...
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
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