如果GitHub检查失败,如何停止GitHub操作?

时间:2020-08-10 07:21:34

标签: github github-actions

当前,我们的团队在几分钟内限制了GitHub操作,因此我只想在WIP标志不存在时运行GitHub操作。

当前,我们使用此插件WIP检查分支是否正在进行中。

是否有一种方法,如果将提交标记为WIP,则GitHub动作不会触发,因此我们可以节省每月的通话时间津贴?

1 个答案:

答案 0 :(得分:0)

您应该能够将ready_for_review事件与review_requested甚至甚至是on: pull_request: types: [ready_for_review] 标签一起使用。

仅当将拉取请求标记为准备好进行审核时,此示例才会运行。

window.addEventListener("orientationchange", function(event) {
  var orientation = (screen.orientation || {}).type || screen.mozOrientation || screen.msOrientation;

if ( ["landscape-primary","landscape-secondary"].indexOf(orientation)!=-1) {
  becomeFullscreen();
}

else if (orientation === undefined) {
  console.log("The orientation API isn't supported in this browser :("); 
}
});