-
- Downloads
There was an error fetching the commit references. Please try again later.
Use Gitlab::PushOptions for `ci.skip` push option
Previously the raw push option Array was sent to Pipeline::Chain::Skip. This commit updates this class (and the chain of classes that pass the push option parameters from the API internal `post_receive` endpoint to that class) to treat push options as a Hash of options parsed by GitLab::PushOptions. The GitLab::PushOptions class takes options like this: -o ci.skip -o merge_request.create -o merge_request.target=branch and turns them into a Hash like this: { ci: { skip: true }, merge_request: { create: true, target: 'branch' } } This now how Pipeline::Chain::Skip is determining if the `ci.skip` push option was used.
Showing
- app/services/ci/create_pipeline_service.rb 1 addition, 1 deletionapp/services/ci/create_pipeline_service.rb
- app/services/git/base_hooks_service.rb 1 addition, 1 deletionapp/services/git/base_hooks_service.rb
- app/workers/post_receive.rb 1 addition, 1 deletionapp/workers/post_receive.rb
- lib/api/internal.rb 1 addition, 1 deletionlib/api/internal.rb
- lib/gitlab/ci/pipeline/chain/skip.rb 2 additions, 2 deletionslib/gitlab/ci/pipeline/chain/skip.rb
- lib/gitlab/data_builder/push.rb 3 additions, 6 deletionslib/gitlab/data_builder/push.rb
- lib/gitlab/git_post_receive.rb 1 addition, 1 deletionlib/gitlab/git_post_receive.rb
- lib/gitlab/push_options.rb 5 additions, 0 deletionslib/gitlab/push_options.rb
- spec/lib/gitlab/push_options_spec.rb 12 additions, 0 deletionsspec/lib/gitlab/push_options_spec.rb
- spec/requests/api/internal_spec.rb 1 addition, 1 deletionspec/requests/api/internal_spec.rb
- spec/services/ci/create_pipeline_service_spec.rb 1 addition, 2 deletionsspec/services/ci/create_pipeline_service_spec.rb
Please register or sign in to comment