Write to any branch with Iterate

23 July 2021 • 1 minute

Written by Shannon England

image for 'Write to any branch with Iterate'

In our most recent release, we’ve added the ability to instruct the bots to write code to a git branch other than the default develop branch.

Historically, we’ve only ever allowed customers to build on the develop branch. However, in a real-world-project, you often have multiple developers working on various features.

To fix this issue, our team have added the ability for developers to build to their own branch. Although, it is important to remember that the model itself is not versioned, therefore if you add an entity, that entity will exist for everyone.

How does this work?

Simply model your Codebots application like normal. Once you’ve built your application, you can come back and make additional changes to your model. The awesome thing here is that you will now see a drop-down menu beside the build app button. Once you click on the drop-down, you will see a re-build application button with the option to build to a git branch.

Showing the process of how to build to a different branch

Once you hit that button, you will see an advanced build screen in which you can create a new branch to build to. For this example, I created the branch beta. One thing to note is if the branch already exists, it will commit to the already-existing branch (i.e., it doesn’t have to be a new branch).

Showing the advanced build screen

Now, if we head over to the git repository, we will see the branch that was created earlier called beta.

Showing the git repo

Shannon England

Written by Shannon England

Branding, Communications and Marketing

Shannon is our branding and marketing go-to. When she isn’t working on our communications and marketing campaigns, she is typically drinking coffee or at the local plant shop.