文档

​
​

Development

User Acquisition

Monetization

工业

Unity Version Control

DevOps

On-prem

Gluon

Editor plug-in

Open Unity Dashboard

Unity Version Control

此页面不支持所选语言。
​
​
Unity Version Control
  • Overview
  • Cloud Repositories organization update
  • Installation
  • Use UVCS with the Unity Editor
  • Unity Version Control plugins
  • Concepts
    • Organizations
    • Repositories
    • Workflows and partial replicas
    • Security
    • Dynamic workspaces (Windows)
    • File explorer
    • Code reviews
    • Branches
    • Merge conflicts
    • Mergebots
    • Xlinks
    • Smart Locks
    • Symlink Support
    • Triggers
  • Tutorials
  • On-Prem
  • Gluon
  • CLI and shortcut references
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

Mergebots

Create a mergebot to automate merges and tasks in your repository.
阅读时间3 分钟
最后更新于 2 个月前

A mergebot is a tool that you can use to automate parts of your merge process. Mergebots check that a merge request meets specified conditions before it merges into your destination branch. This automation can help you can work faster and reduce room for errors.
For example, you can set up a mergebot to automate the following tasks:
  • Check merge request review statuses and merge conflicts.
  • Use individual status parameter attributes and values to trigger a merge request automatically.
  • Re-queue merge requests that fail due to new changes in the destination branch.
  • Notify team members of successful merges and trigger external tools.
For information on how to set up a mergebot, refer to Create a mergebot. For a full tutorial on how to create a Trunk bot, refer to the Create a mergebot Unity Learn tutorial.

Mergebot configuration

Branch configuration

The Destination branch that you select is the branch that a trunk bot merges task branches into, and the branch that a conflicts bot checks for merge conflicts. The destination branch is usually your main branch.
You can enter a specific Branch prefix to further filter the branches that your mergebot processes.

Types of mergebot

Mergebot type

Description

Trunk botA trunk bot automatically merges task branches into your destination branch. You can further configure your trunk bot behavior and which branches the trunk bot processes. You can also set up an integration to automatically trigger builds.
Conflicts botA conflicts bot automatically detects merge conflicts on task branches before you merge your changes.

Status parameters

Mergebots use a branch's status attribute to detect which branches the mergebot should process. You can edit the attribute name according to your workflow.

Status parameter

Default value

Description

Status attribute
status
The name of the attribute that the mergebot detects to process a branch.
Resolved value
resolved
The mergebot processes branches with this attribute value.
Failed value
failed
When a merge fails, the mergebot sets the status attribute to
failed
.
Merged value
merged
When a merge completes, the mergebot sets the status attribute to
merged
.
Testing value
testing
A test value for the status attribute.

Trunk bot options

The following configuration options are only available for a trunk bot.

Field

Description

Only process reviewed branchesThis option ensures that the mergebot only merges reviewed branches.
Re-enqueue branches that failed due to detected changes in the destination branchThis option ensures that when the destination branch has new changes, the mergebot re-queues a merge to include the new changes.
Label merged changesetThis option ensures that the mergebot labels all merged changesets. You can then enter a Label pattern to define what label the mergebot adds. For example,
LABEL.${AUTO_INCREMENT_NUMBER}_${BUILD_DATE_FORMATTED, yyyy-MM-dd}
adds a label in this format:
LABEL.128.2018-10-23
.

Advanced settings

CI integration

You can set up Continuous Integration (CI integration) so that your trunk mergebot triggers a build when it merges changes. The mergebot integrates with Jenkins, Bamboo, and TeamCity.
To set up a CI integration, you need the base URL of your system server, and your username and password to connect to the platform system.
注意
CI integration is only available for trunk bots.

Notifier integration

You can add a Notifier integration to both conflict and trunk mergebots so that the mergebot can send users status notifications. You can send notifications through either Slack or email.
To use Slack, you need your Slack Token to connect to the Slack API. To use Email, you need the sender email address and password. You also server URL and port of the SMTP server that you want to use to send the emails.

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Mergebot configuration

      • Branch configuration

      • Types of mergebot

      • Status parameters

      • Trunk bot options

    • Advanced settings

      • CI integration

      • Notifier integration


报告此页面的问题