gitlab-org--gitlab-foss/lib/gitlab/data_builder
Luke Duncalfe 1883e320ea 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.
2019-04-09 10:03:26 +12:00
..
build.rb Enable even more frozen string in lib/gitlab 2018-11-06 22:47:32 -08:00
note.rb Enable even more frozen string in lib/gitlab 2018-11-06 22:47:32 -08:00
pipeline.rb Drop legacy artifacts usage 2019-04-04 16:19:43 +07:00
push.rb Use Gitlab::PushOptions for `ci.skip` push option 2019-04-09 10:03:26 +12:00
repository.rb Enable even more frozen string in lib/gitlab 2018-11-06 22:47:32 -08:00
wiki_page.rb Enable even more frozen string in lib/gitlab 2018-11-06 22:47:32 -08:00