拉取请求弹出确认框 [英] Pull request pop up a confirmation box

查看:83
本文介绍了拉取请求弹出确认框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在请求请求期间,我的要求是设置分支策略,以便我可以弹出一个自定义对话框,该对话框将询问用户是否所有系统测试都在合并的传入功能分支上运行.这可能是自由文本或单选按钮类型的交互.在Azure DevOps中的拉取请求期间是否可以执行一些此类自定义工作流?

During pull request my requirement is to set a branch policy so that I can pop up a custom dialog box which will ask the user if all systems tests were run on the incoming feature branch being merged. This will possibly be a free text or a radio button kind of interaction. Is it possible to do some such custom workflows during pull requests in Azure DevOps?

谢谢

推荐答案

是否有可能在请求请求期间执行一些此类自定义工作流程 在Azure DevOps中?

Is it possible to do some such custom workflows during pull requests in Azure DevOps?

当然可以!我们提供了一种自定义方法,您可以使用Azure Function + Azure Devops service hook来应用您的想法.

Of course yes! We provide a custom method that you can apply your idea by using Azure Function + Azure Devops service hook.

基本逻辑是编写自定义功能脚本以实现弹出自定义对话框,此对话框将询问用户一些确认信息.对于 Azure函数,我们提供了一项功能,您可以获取其监听URL,并将其与任何第三方服务(包括 Azure devops ")集成.

It's basic logic is write custom function scripts to achieve pop up a custom dialog box and this dialog box will ask the user some confirmation info. For Azure Function, we provide one feature which you can get its listen URL, and integrate it with any third party service, including Azure devops.

并获取azure函数的侦听URL,只需转到Azure devops project setting-> Service Hooks,使用此函数URL创建一个服务挂钩.

And get the listen URL of azure function, just go Azure devops project setting -> Service Hooks, create a service hook with this function URL.

最重要的是根据您的方案条件选择合适的触发事件以执行天蓝色函数.

The most important thing is choose a suitable trigger event based on your scenario conditions for azure function execution.

有关详细步骤和说明,请查看以下文档:

For detailed steps and description, check this doc: Use Azure Functions to create custom branch policies.

这篇关于拉取请求弹出确认框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆