-
Notifications
You must be signed in to change notification settings - Fork 215
Document Zulip commands #877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Triagebot Zulip commands | ||
|
||
You can send commands to triagebot on the [Rust Zulip](https://rust-lang.zulipchat.com) server using two separate mechanisms: | ||
|
||
- Sending a direct message (DM) to the [triagebot][triagebot-dm] account. | ||
- Sending a message in some stream by tagging `@triagebot`, followed by a command (e.g. `@triagebot end-meeting`). | ||
|
||
Triagebot commands can only be sent by users that are in the [team](https://github.com/rust-lang/team) database. | ||
|
||
## Direct message commands | ||
|
||
You can send these commands as a direct message to the [triagebot][triagebot-dm] account. | ||
|
||
- `whoami`: shows the Rust teams that you are a part of | ||
- `lookup github <zulip-name>`: lookup the GitHub username of a user by their Zulip name | ||
- `lookup zulip <github-username>`: lookup the Zulip name of a user by their GitHub username | ||
- `team-stats <team-name>`: show the review workqueue statistics of all members of the given team | ||
- Reviewer workqueue commands, which are documented [here](review-queue-tracking.md#usage). | ||
- Notification commands, which are documented [here](notifications.md#usage). | ||
|
||
You can use the `--help` flag or a `help` subcommand for any of these commands to find out more about their parameters. | ||
|
||
### Impersonation | ||
|
||
You can also run the above commands on behalf of other GitHub users with the following message: | ||
|
||
```text | ||
as <github-username> <command> | ||
# e.g. | ||
as MyFavouriteGitHubUser work show | ||
``` | ||
|
||
If you execute a "sensitive" command in this way (i.e. a command that modifies something), `triagebot` will notify the user that you have impersonated via a direct message. | ||
|
||
Note that the impersonation functionality is intended for inspecting the status (e.g. the reviewer workqueue or Rust teams) of other users or occasional debugging. Please do not use it maliciously. | ||
|
||
## Stream commands | ||
|
||
- *Meeting* commands serve for controlling the flow of Zulip meetings. They are documented [here](zulip-meeting.md). | ||
- *Rust Project Goals* commands serve for controlling Rust Project Goal tracking. | ||
- `@triagebot ping-goals <threshold> <next-update>`: For use by the goals team to ping goal owners on Zulip to give an update on their goal. Will not ping if there has been a comment in `<threshold>` days. `<next-update>` is a string to say when the next blog update will start. | ||
- `@triagebot docs-update`: Generates a Pull Request ([example](https://github.com/rust-lang/rust/pull/141923)) to update the documentation submodules. See [Documentation Updates](doc-updates.md). | ||
|
||
## Implementation | ||
|
||
See [`src/zulip.rs`](https://github.com/rust-lang/triagebot/blob/HEAD/src/zulip.rs). | ||
|
||
[triagebot-dm]: https://rust-lang.zulipchat.com/#narrow/dm/261224-triagebot |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.