Quickly duplicate Project branches to build several prototypes that use the same set of prompts as a base.
This tutorial demonstrates how to create duplicates of a Project branch. This feature enables you to create several variations of a Project before creating a pull request.
Your process may look like the following:
- Connect your repository to Builder, configuring it for pull requests.
- Prompt Builder to make adjustments to create a new feature.
- Create duplicate branches of your Project, making other variations of your feature.
Once you've chosen a final version of your feature, you could then make a pull request to your code repository.
To create branches and pull requests from your Project, you must first ensure your Project has enabled them.
To enable branching and pull requests for your Project:
- On your main Projects page, click the three-dot menu for your Project.
- Choose Project Settings.
- Go to the Advanced tab.
- Under Commit Mode, choose the Pull Requests option.
- Click Save.
You should now see that you can create a new branch. Use the + New Branch whenever you create new features.
After configuring your Project to allow pull request:
- Go to the Projects page.
- Locate your Project and click + New Branch.
This creates a new Project, using your code repository as its base.
To refine your application:
- Go to the prompt field embedded on the left, within the Chat tab.
- Write a new prompt specifying what you'd like changed.
- Click Enter.
Builder immediately begins to apply the changes.
For example, the following prompt would lead to Builder adding a reminder banner to the top of the page with some specific details.
Include a small banner to the top of the page, reminding
users when they need to RSVP by.To duplicate your branch:
- Click the three-dot menu at the top-right of the Visual Editor.
- Choose Duplicate Branch.
This will create a new branch, but include the current changes you've made to your Project.