-
Notifications
You must be signed in to change notification settings - Fork 65
Commands
This is a list of the commands that zulipbot currently supports.
- Commands edited to be included in a comment/description will not work.
- The lack of support for edited comments/descriptions is a result of an inconsistency in the GitHub API.
- Commands within code blocks will be ignored.
-
zulipbot supports customizable command aliases, which can be created by modifying the configuration file (
src/config.js
).
-
username
— Theusername
object configured insrc/secrets.js
; the username that zulipbot is authenticated as. -
command
— The specified command that will trigger a response or action from zulipbot. -
"multiple" "arguments"
— The arguments for commands are surrounded with double quotes ("
); only certain commands require arguments.
Assigns the commenter to an issue (or issue creator if included in an issue description). Works in issue comments and issue descriptions.
- Gives new contributors repository permissions based on the
addCollabPermission
object configured insrc/config.js
; eitherpull
,push
, oradmin
; if undefined, contributors will not be given any permissions. - If
inProgressLabel
is defined insrc/config.js
, a label with the value ofinProgressLabel
will be added to the claimed issue. - Can be enabled/disabled by configuring the
claimEnabled
object configured insrc/config.js
.
Unassigns the commenter from an issue. Works in issue/pull request comments.
- If
inProgressLabel
is defined insrc/config.js
and is labeled on the abandoned issue/pull request, a label with the value ofinProgressLabel
will be removed from the issue/pull request. - Can be enabled/disabled by configuring the
abandonEnabled
object configured insrc/config.js
.
Adds existing repository labels to issues and pull requests. Works in issue descriptions and issue/pull request comments.
- Attempts to add nonexistent repository labels to an issue/pull request will result in an error message.
- Travis build notifications can be added to pull requests using
@username label "travisUpdatesLabel"
wheretravisUpdatesLabel
is thetravisUpdatesLabel
configured insrc/config.js
. - Configure the
selfLabelingOnly
object insrc/config.js
to only allow issue/pull request creators to label their own issues/pull requests. - Can be enabled/disabled by configuring the
labelEnabled
object configured insrc/config.js
.
Removes labels from issues and pull requests. Works in issue descriptions and issue/pull request comments.
- Attempts to remove invalid labels from an issue/pull request will result in an error message.
- Configure the
selfLabelingOnly
object insrc/config.js
to only allow issue/pull request creators to remove labels from their own issues/pull requests. - Can be enabled/disabled by configuring the
removeEnabled
object configured insrc/config.js
.
Adds the commenter to specified area label teams (or issue/pull request creator if included in an issue/pull request description). Works in issue/pull request descriptions and issue/pull request comments.
- This command should be enabled only if:
- The monitored repository is owned by an organization.
- The repository's organization has already had area label teams created prior to usage.
- If the user is not part of the GitHub organization, the user will be prompted to accept an invitation link. If the user is already a part of the GitHub organization, the user will be automatically added.
- Can be enabled/disabled by configuring the
joinEnabled
object configured insrc/config.js
.
Need more help? Join us on the zulipbot stream on the Zulip development community server.