The bot provides Code Review-related functionality for the openEuler community. Provides lgtm, approved labels, PR merge command and tracking PR source code changes to automatically remove obsolete lgtm, approved labels and automatically merge PR when PR merge conditions are met.
Features
Command
The following command are provided:
command
example
description
who can use
/lgtm [cancel]
/lgtm /lgtm cancel
Add or remove the lgtm label for a Pull Request, this label will be used for Pull Request merge determination.
Collaborators of this repository. Pull Request authors can use the /lgtm cancel command, but cannot use the /lgtm command.
/approve [cancel]
/approve /approve cancel
Add or remove the approved label for a Pull Request, this label will be used for Pull Request merge determination.
Collaborators of this repository.
/check-pr
/check-pr
Check whether the current PR's tag meets the condition, if it does, it is merged into the PR.
Anyone can trigger such a command on a Pull Request.
Specify the number of lgtm labels
The configuration item provides a setting for the number of PR lgtm tags. When this configuration item is greater than 1, the contents of the lgtm tags consist of lgtm-user. ps:the user is the login id of the user using /lgtm command in the gitee platform.
Automatic cleaning of lgtm labels
We will remove the existing lgtm labels when a new commit is submitted for the PR.
Merge PR
Auto-merge: automatically detects the conditions for PR merge, and automatically merges in when the merge conditions are met.
Manual check-trigger merge-in: Use the /check-pr command to trigger the robot to check the current merge-in condition of the PR, and give the corresponding prompt when the merge-in condition is not met, otherwise the PR is merged in.
Automatically add /retest comments
When a PR has a new commit, it will automatically add /retest comments to trigger the test task
Check whether the PR author has designated a reviewer
According to the configuration item, when the check reviewer function is turned on, after the PR is created, it will check whether the author has designated a reviewer. If not, it will give corresponding prompts.