Create a mergebot

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 Cloud dashboard:

  1. Open the Version Control repository, and select the Settings button.
  2. Select the New mergebot button.
  3. Select either Trunk bot or Conflicts bot as your Mergebot type.
  4. Select the branch you want to use as your Destination branch.
  5. Enter an identifying name and description for the mergebot.
  6. Configure your mergebot.

    Note: For more information on the mergebot configuration options, refer to the Mergebot configuration section of the Mergebots page.

  7. Select Save.

Apply the mergebot to a branch

Your mergebot processes branches that have the resolved status attribute. You can add the status attribute through either the desktop client or the Cloud dashboard.

Set attribute through the Cloud dashboard

  1. Select the arrow icon on a branch to expand the details.
  2. Select Attributes.
  3. Select the Name dropdown and select the status attribute you created with the mergebot.
  4. Enter the resolved status value you defined when you created the mergebot.
  5. Select Add.

Set attribute through the desktop client

  1. On the Branches tab, select the branch.
  2. Select the Show properties > Apply attributes.
  3. Select status from the Attribute name dropdown, and select resolved from the value dropdown.
  4. 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 resolved

For more information, refer to the attribute set reference documentation.

Additional resources

For a full tutorial on how to create a Trunk bot, refer to the Create a mergebot Unity Learn tutorial.