Default GitHub branch is not set by default

Ryan_PS
Participant III

Whenever my team creates a PR on our Looker repo directly on GitHub’s website, it sets the default branch as expected (“develop”).

But when we use Looker to generate the PR by using the “Open Pull Request” button, it always opens a PR in GitHub with the branch not set to default (it sets it to “master”).

Here, we can see the branch is set to master, and the “develop” default branch is in the drop-down: 

12103a91-9e82-44b4-a997-76397c1643bd.png

This has some unfortunate ramifications because if we forget to change it to “develop” and we then approve+merge the PR to master, it automatically kicks off a GitHub action that we have setup to release staging to production. This is, of course, is dangerous; we’ve had at least 1 unintended staging deployment in the past.

Is there anyway to fix this?

Solved Solved
1 1 232
1 ACCEPTED SOLUTION

Ryan_PS
Participant III

With the latest Looker version (21.6.18), this appears to have been fixed! 

View solution in original post

1 REPLY 1

Ryan_PS
Participant III

With the latest Looker version (21.6.18), this appears to have been fixed!