简体   繁体   English

如何跳过MyGet构建服务中的特定提交?

[英]How to skip specific commits in MyGet build service?

I would like to use MyGet build service to build my project hosted at GitHub. 我想使用MyGet构建服务来构建托管在GitHub上的项目。 However, the service is triggered unnecessarily by updating README.md or other documents in the repository. 但是,更新存储库中的README.md或其他文档会不必要地触发该服务。 Is there any way to skip these kinds of commits? 有什么办法可以跳过这些提交吗?

Unfortunately, there's no way out-of-the-box to filter commits, as there's no way for a machine to know what you'd like to build and what not (without going through extensive configuration). 不幸的是,没有开箱即用的方式可以过滤提交,因为机器无法知道要构建什么而不要构建什么(无需进行大量配置)。 The GitHub commit webhook will fire either way, no matter what you commit. 不管您提交什么,GitHub commit webhook都可以触发。 Any service responding to the webhook will listen for the event, including MyGet. 任何响应webhook的服务都将监听该事件,包括MyGet。

However, you could build your own triggers as MyGet Build Services supports POST web hooks. 但是,您可以构建自己的触发器,因为MyGet Build Services支持POST Web挂钩。 You could add your own filtering to your custom trigger, and choose when to fire the webhook, and when not to. 您可以将自己的过滤器添加到自定义触发器,并选择何时触发Webhook,何时不触发。

Details about how to create a custom build trigger for MyGet Build Services can be found here: http://docs.myget.org/docs/how-to/auto-trigger-a-myget-build-using-an-http-post-hook-url 可以在以下位置找到有关如何为MyGet Build Services创建自定义生成触发器的详细信息: http ://docs.myget.org/docs/how-to/auto-trigger-a-myget-build-using-an-http- 摘机网址

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM