Create a mergebot
Automate repository merges and tasks by creating a mergebot in Unity Version Control.
Read time 1 minuteLast updated 21 days ago
Mergebots automate tasks and merges in your repository. To understand mergebots and what you can use them for, refer to Mergebots. You can create a mergebot in your Unity Dashboard:
- Open the Version Control repository, and select the Settings button.
- Select the New mergebot button.
- Select either Trunk bot or Conflicts bot as your Mergebot type.
- Select the branch you want to use as your Destination branch.
- Enter an identifying name and description for the mergebot.
- Configure your mergebot.
- Select Save.
Apply the mergebot to a branch
Your mergebot processes branches that have theresolvedSet attribute through the Cloud dashboard
- Select the arrow icon on a branch to expand the details.
- Scroll to Attributes.
- In the Name dropdown, select the status attribute you created with the mergebot.
- Enter the resolved status value you defined when you created the mergebot.
- Select Add.
Set attribute through the desktop client
- On the Branches tab, select the branch.
- Select Show properties > Apply attributes.
- Select status from the Attribute name dropdown, and select resolved from the value dropdown.
- Select Apply.
Set attribute through the CLI
You can also set an attribute through the CLI:cm attribute set att:status br:/main/example-branch resolvedattribute set