1

I am trying to do code reviews with GitHub and Teamcity. I want to place a Git Merge protection gatecheck, since last time, people placed compilation errors in our team Develop Git Branch. We know how to conduct Teamcity builds linking to Git.

https://blog.jetbrains.com/teamcity/2019/08/building-github-pull-requests-with-teamcity/

However, come time during actual Git Merge, I want to deny the merge if the Teamcity build failed.

How can I do that in Github?

torek
  • 448,244
  • 59
  • 642
  • 775
mattsmith5
  • 540
  • 4
  • 29
  • 67
  • You can't do it in raw Git, but GitHub do provide the notion of a *protected branch*. This protection is rather all-or-nothing (though I think you can make one protect against normal users but not against administrators). Whether that's sufficient for your purposes, I don't know. – torek Oct 27 '21 at 21:09
  • hi @torek feel free to write as answer, and I can send points, thanks – mattsmith5 Jun 29 '22 at 20:45
  • I'm not a GitHub expert; you should look up questions of the form "how to make GitHub protected branches", for which I'm sure there are many answers (including on GitHub's own documentation). – torek Jun 30 '22 at 10:08

0 Answers0