Skip to content

Commit 4595b4b

Browse files
committed
Improve notes on updating commands
1 parent 957d57a commit 4595b4b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/development.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ When modifying commands, make sure to update both:
126126

127127
1. The `BorsCommand` enum in `src/bors/command/mod.rs`
128128
2. The help page in `templates/help.html`
129+
3. The `@bors help` command output in `src/bors/handlers/help.rs`
129130

130131
## Logs in tests
131132
By default, logs are disabled in tests. To enable them, add `#[traced_test]`

src/bors/command/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ impl FromStr for RollupMode {
6464

6565
/// Bors command specified by a user.
6666
///
67-
/// When modifying commands, remember to also update `templates/help.html`.
67+
/// When modifying commands, remember to also update:
68+
/// - `templates/help.html` (HTML help page)
69+
/// - `src/bors/handlers/help.rs` (the `@bors help` command output)
6870
#[derive(Debug, PartialEq)]
6971
pub enum BorsCommand {
7072
/// Approve a commit.

0 commit comments

Comments
 (0)