我已经设置了一个deploy/staging
然而,每当我推入 GitLab 项目的存储库时(它有一个 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:
我可以研究这个分支和我的用户/功能/主分支有什么区别,这些分支只是说带有数据压缩/对象写入状态等的预期推送消息
Thanks
当分支受到保护时,用户在推送时会收到此类消息。
请参阅完整详细信息GitLab 文档 - 受保护的分支 https://docs.gitlab.com/ee/user/project/protected_branches.html
要禁用该消息,请取消选中Project settings
> General
> Merge Requests
-> 选项Show link to create/view merge request when pushing from the command line
(source: gitlab.com https://docs.gitlab.com/ee/user/project/settings/img/merge_requests_settings.png)
请参阅完整详细信息GitLab 文档 - 合并请求设置 https://docs.gitlab.com/ee/user/project/settings/#merge-request-settings
我不知道 DeployHQ,但据我所知,GitLab Webhook 只能通知而不能阻止推送。请参阅完整详细信息GitLab 文档 - Webhooks https://docs.gitlab.com/ee/user/project/integrations/webhooks.html.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)