Commit Graph

11 Commits

Author SHA1 Message Date
GitLab Bot 2f147005c5 Add latest changes from gitlab-org/gitlab@master 2020-07-11 00:09:17 +00:00
Shinya Maeda bf639fd504 Create detached merge request pipelines
By using `refs/merge-requests/:iid/head`

ok

ok

Improve naming nicely

Add nice tests

add nice tests

fix some more

revert
2019-03-29 13:58:45 +07:00
Matija Čupić a1be580979
Implement Command#ambiguous_ref? 2018-12-08 19:28:56 +01:00
Matija Čupić 350ea9c55a
Implement Repository#ambiguous_ref?
This implements Repository#ambiguous_ref? and checks if a ref is
ambiguous before trying to resolve the ref in Project#protected_for?
2018-12-08 19:28:56 +01:00
Matija Čupić 24d682254a
Move Project#resolve_ref to Repository 2018-12-08 19:28:56 +01:00
Matija Čupić b0b5924eb4
Use nil instead of raising AmbiguousRef 2018-12-08 19:28:34 +01:00
Matija Čupić 2edc02143b
Prevent creating pipelines with ambiguous refs 2018-12-08 19:28:33 +01:00
gfyoung 06892e88f5 Enable frozen string for lib/gitlab/ci
Enables frozen string for the following:

* lib/gitlab/ci/*.rb
* lib/gitlab/ci/build/**/*.rb
* lib/gitlab/ci/config/**/*.rb
* lib/gitlab/ci/pipeline/**/*.rb
* lib/gitlab/ci/reports/**/*.rb

Partially addresses #47424.
2018-10-26 16:36:42 -07:00
Kamil Trzcinski ad3be46b9f Implement and use Gitlab::Ci::Pipeline::Chain::Command 2017-12-08 12:01:15 +01:00
Grzegorz Bizon 26e73c2e8f Add some minor improvements to pipeline creation chain 2017-09-27 11:45:16 +02:00
Grzegorz Bizon fa3fb23fb1 Move pipeline builder validation chain to a module 2017-09-26 11:53:50 +02:00