
Branches for external Git pull requests
New settings for git to create branches for pull requests created outside of Omni, for more robust change management in product for folks using git outside the app
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
next feature okay I've already got a branch with some changes as I mentioned I am um have this model link to get so I'm going to go ahead and create a pull request from that branch that I just created and uh yes yes yes yes yes let me just you know create the poll request and you know we'll just show the files that change changed oh look I added a label to users and inventory items uh I'm quite happy with this change I'm gonna go ahead and squash merge it this everybody's seen before so this is really just set up for the next thing that we want to do um great so that's merged and uh you know what well let's go back to to
here I'm going to exit um if I refresh you should see oh yep that merg this is now so the poll request worked that change got promoted into my shared model everything's in sync between shared model and the git Branch uh same the users one is also here you can see and uh but it turns out I'm really not happy with that change or some other change that I made in the past and so I'm gonna go into GitHub and I want to revert the change GitHub makes a nice pull request for me that has the changes that I would need in order to revert that change as you can see it's just going to remove these um very nice right in the past we
would have just been like oh great there's a new pull request and I don't know what to do with it but uh I've added a new setting under your git integration to create Omni branches for all poll requests um might change the the text there and we might actually make it not an option if we decide this is like definitely the thing to do but for now it's sort of experimental so I've made it uh a setting that people can do and uh if we go into the model now I might need to refresh I don't know just to make sure that the branch list got updated but if I go and oh look creating the poll request in GitHub has created a corresponding Omni
Branch here and go look in history is probably the best place to show it I mean you can see here that we no longer have the label on users which is the revert that I was doing but you can see that we made a uh we created the branch and saved the yaml for that Branch to this for the git branch that got created with the poll request to this Omni branch and now we have essentially the revert of that uh po Ras that got created or I'm reverting that poll request you could do this for other things it's not necessarily just for a revert So in theory I could uh do some work uh outside of omni uh in you know my favorite code
editor on an omni model push that up to GitHub create a PLL request and you would wind up with with this as the result as long as the uh yaml that you were trying to save was was valid on the yaml so uh that concludes my demo for the day and uh that last one is not yet in uh production so there's still definitely some cleanup that needs to happen to to get that done but uh it's looking pretty promising for sometime next week and for anyone who doesn't know how the stuff works under the hood that can seem kind of trivial it's like oh you put a branch now it's there in the repo whatever but like there's a lot of magic that is
needed to make that happen because it's not that at all so good job getting that done yeah thanks