Commit graph

9 commits

Author SHA1 Message Date
Stan Hu
6c6e4ca495 Fix remote mirrors not updating after tag push
Remote mirrors were only being updated after pushes to branches, not
tags. This change consolidates the functionality into
Git::BaseHooksService so that both tags and branches will now update
remote mirrors.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51240
2019-05-17 14:45:41 -07:00
Diego Silva
091b15b742 Change DetectRepositoryLanguagesWorker to not receive user
Fixes #60425
2019-05-09 16:54:20 +01:00
Jonathon Reinhart
f48605c796 Use all keyword args for DataBuilder::Push.build() 2019-04-25 13:54:26 +02:00
Kamil Trzciński
2b9492a292 Process at most 4 pipelines during push
This adds a limitation that we will try to create pipeline
for at most 4 first changes (branches and tags).

This does not affect processing of Pipelines for Merge Requests,
as each updated MR will have associated pipeline created.
2019-04-10 11:51:19 +02:00
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
Nick Thomas
e46d4bf4da
Extract a Git::{Base,Tag,Branch}HooksService 2019-04-05 18:26:53 +01:00
Nick Thomas
d17cce6aed
Only execute system hooks once when pushing tags 2019-04-03 01:53:38 +01:00
Nick Thomas
83fc1464dd
Rename GitPushService -> Git::BranchPushService 2019-03-25 13:02:31 +00:00
Nick Thomas
558e946263
Rename GitTagPushService -> Git::TagPushService 2019-03-25 12:56:46 +00:00