Skip to content

Commit 57abaa7

Browse files
committed
rename notabot -> monorobot
1 parent c42b86f commit 57abaa7

File tree

15 files changed

+28
-28
lines changed

15 files changed

+28
-28
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ change.
88
How to test the changes? Which command to run? Which output is expected?
99

1010
```
11-
./notabot check mock_payloads/SOME_FILE
11+
./monorobot check mock_payloads/SOME_FILE
1212
```
1313

1414
## References

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
with:
2626
ocaml-version: ${{ matrix.ocaml-version }}
2727

28-
- run: opam pin add notabot.dev . --no-action
28+
- run: opam pin add monorobot.dev . --no-action
2929

3030
- run: sudo apt update
31-
- run: opam depext notabot --yes
32-
- run: opam depext notabot --yes --with-doc
33-
- run: opam depext notabot --yes --with-test
31+
- run: opam depext monorobot --yes
32+
- run: opam depext monorobot --yes --with-doc
33+
- run: opam depext monorobot --yes --with-test
3434

3535
- run: opam install . --deps-only --with-doc --with-test
3636

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
default: build
44

55
start:
6-
dune exec -- ./src/notabot.exe
6+
dune exec -- ./src/monorobot.exe
77

88
build:
9-
dune build src/notabot.exe
9+
dune build src/monorobot.exe
1010

1111
test:
1212
dune runtest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ make
1818

1919
## Running
2020

21-
Run the `_build/default/src/notabot.exe` binary. The following commands are supported.
21+
Run the `_build/default/src/monorobot.exe` binary. The following commands are supported.
2222

2323
- `run`: Launch the HTTP server
2424
- `check_gh <GH_PAYLOAD>`: read a Github notification from a file and display the actions that will be taken (used for testing)

documentation/config_docs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Repository Configuration
22

3-
A repository configuration file specifies how notifications should be handled for a given repository. It should be at the root of your monorepo in the main branch. The bot will look for a `notabot.json` file by default, but you can change this behavior with the `--config` flag.
3+
A repository configuration file specifies how notifications should be handled for a given repository. It should be at the root of your monorepo in the main branch. The bot will look for a `monorobot.json` file by default, but you can change this behavior with the `--config` flag.
44

55
When the bot receives its first incoming GitHub notification, it will query the repository URL to retrieve its configuration file. For subsequent notifications, it will use the cached configuration unless an update is detected.
66

@@ -151,7 +151,7 @@ Internally, the bot keeps track of the status of the last allowed payload, for a
151151
"status_rules": {
152152
"allowed_pipelines": [
153153
"default",
154-
"buildkite/notabot-test"
154+
"buildkite/monorobot-test"
155155
],
156156
"rules": [
157157
{

lib/context.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type t = {
1717

1818
let default : t =
1919
{
20-
config_filename = "notabot.json";
20+
config_filename = "monorobot.json";
2121
secrets_filepath = "secrets.json";
2222
state_filepath = None;
2323
secrets = None;

lib/slack.ml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ let generate_pull_request_notification notification =
4848
| Labeled -> "labeled", show_labels labels
4949
| _ ->
5050
invalid_arg
51-
(sprintf "Notabot doesn't know how to generate notification for the unexpected event %s"
51+
(sprintf "Monorobot doesn't know how to generate notification for the unexpected event %s"
5252
(string_of_pr_action action))
5353
in
5454
let summary =
@@ -87,7 +87,7 @@ let generate_pr_review_notification notification =
8787
)
8888
| _ ->
8989
invalid_arg
90-
(sprintf "Notabot doesn't know how to generate notification for the unexpected event %s"
90+
(sprintf "Monorobot doesn't know how to generate notification for the unexpected event %s"
9191
(string_of_pr_review_action action))
9292
in
9393
let summary =
@@ -120,7 +120,7 @@ let generate_pr_review_comment_notification notification =
120120
| Created -> "commented"
121121
| _ ->
122122
invalid_arg
123-
(sprintf "Notabot doesn't know how to generate notification for the unexpected event %s"
123+
(sprintf "Monorobot doesn't know how to generate notification for the unexpected event %s"
124124
(string_of_comment_action action))
125125
in
126126
let summary =
@@ -162,7 +162,7 @@ let generate_issue_notification notification =
162162
| Labeled -> "labeled", show_labels labels
163163
| _ ->
164164
invalid_arg
165-
(sprintf "Notabot doesn't know how to generate notification for the unexpected event %s"
165+
(sprintf "Monorobot doesn't know how to generate notification for the unexpected event %s"
166166
(string_of_issue_action action))
167167
in
168168
let summary =
@@ -196,7 +196,7 @@ let generate_issue_comment_notification notification =
196196
| _ ->
197197
invalid_arg
198198
(sprintf
199-
"Notabot doesn't know how to generate pull request review comment notification for the unexpected event %s"
199+
"Monorobot doesn't know how to generate pull request review comment notification for the unexpected event %s"
200200
(string_of_comment_action action))
201201
in
202202
let summary =
@@ -273,7 +273,7 @@ let generate_status_notification (cfg : Config_t.config) (notification : status_
273273
| Error -> "error"
274274
| _ ->
275275
invalid_arg
276-
(sprintf "Notabot doesn't know how to generate notification for the unexpected event %s of %s"
276+
(sprintf "Monorobot doesn't know how to generate notification for the unexpected event %s of %s"
277277
(string_of_status_state state) sha)
278278
in
279279
let color_info =

monorobot

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
dune exec -- ./src/monorobot.exe $@

notabot.opam renamed to monorobot.opam

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
opam-version: "2.0"
2-
name: "notabot"
2+
name: "monorobot"
33
version: "0.1"
44
synopsis: "Notification bot"
55
description: "Notification bot to handle webhook events and post notifications to Slack."
66
maintainer: "Ahrefs <[email protected]>"
77
authors: "Ahrefs <[email protected]>"
8-
homepage: "https://github.com/ahrefs/notabot"
9-
bug-reports: "https://github.com/ahrefs/notabot/issues"
10-
dev-repo: "git+https://github.com/ahrefs/notabot.git"
8+
homepage: "https://github.com/ahrefs/monorobot"
9+
bug-reports: "https://github.com/ahrefs/monorobot/issues"
10+
dev-repo: "git+https://github.com/ahrefs/monorobot.git"
1111
depends: [
1212
"ocaml" {>= "4.03.0"}
1313
"dune" {>= "2.5.0"}

notabot

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)