gpt4 book ai didi

git - 如果 Github 中不存在自定义标签,则阻止 merge

转载 作者:行者123 更新时间:2023-12-05 03:56:25 27 4
gpt4 key购买 nike

我正在为我的团队制定卫生发展流程。作为其中的一部分,我希望构建的每个代码都经过单元测试和 QA 验证。我已经为代码存储库创建了自定义标签,例如 QA Ready、Prod Ready。除非存在上述自定义标签,否则如何确保 PR 不会 merge 到 master?

最佳答案

我认为您正在寻找的是:GitHub Actions

Run a workflow on any GitHub event

Kick off workflows with GitHub events like push, issue creation, or a new release. Combine and configure actions for the services you use, built and maintained by the community.

Whether you want to build a container, deploy a web service, or automate welcoming new users to your open source projects—there's an action for that. Pair GitHub Packages with Actions to simplify package management, including version updates, fast distribution with our global CDN, and dependency resolution, using your existing GITHUB_TOKEN.

您可以在 marketplace 中探索现有的 GitHub 操作.

在市场上快速搜索,我找到了这个 GitHub 操作 Enforce PR label .

关于git - 如果 Github 中不存在自定义标签,则阻止 merge ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59328807/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com