Gitlab 要求我创建一个合并请求而不是直接推送到 repo

Gitlab requesting I create a merge request instead of pushing straight into repo

我已经为 GitLab 项目设置了一个 deploy/staging 存储库,但是,每当我将其推送到它时(它有一个 DeployHQ webhook,如果这有什么不同?)它会说以下内容:

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:

我可以研究这个分支和我的 user/feature/master 分支有什么区别,这些分支只是说带有数据 compression/object 写入状态等的预期推送消息

谢谢

当分支受到保护时,用户在推送时收到此类消息。

请参阅 GitLab Documentation - Protected Branches

中的完整详细信息

取消选中 Project settings > General > Merge Requests -> 选项 Show link to create/view merge request when pushing from the command line

来禁用消息


(来源:gitlab.com

请参阅 GitLab Documentation - Merge request settings

中的完整详细信息

我不知道 DeployHQ,但据我所知,GitLab Webhook 只能通知而不能阻止推送。请参阅 GitLab Documentation - Webhooks 中的完整详细信息。