0

I have setup a deploy/staging repo for a GitLab project, however, whenever I push into it (it has a DeployHQ webhook if that makes a difference?) it says the following:

remote:
remote: To create a merge request for deploy/staging, visit:
remote:   https://gitlab.com/USER/PROJECT/merge_requests/new?merge_request%5Bsource_branch%5D=deploy%2Fstaging
remote:

What are the differences I could look into for this branch and my user/feature/master branches that just say the expected push messages with data compression/object writing status etc

Thanks

1
  • 1
    GitLab offers to create a merge request into the default branch of a repository on pushing to another branch is the usual behaviour; I could not find any documentation on this though. Commented Sep 21, 2018 at 12:54

1 Answer 1

2

The user is getting such messages while pushing when the branch is protected.

See full details in GitLab Documentation - Protected Branches

To disable the message uncheck Project settings > General > Merge Requests -> Option Show link to create/view merge request when pushing from the command line

Merge request settings
(source: gitlab.com)

See full details in GitLab Documentation - Merge request settings

I don't know DeployHQ but as far as I know a GitLab Webhook can only notify and not block a push. See full details in GitLab Documentation - Webhooks.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.