Skip to content

Commit f44d9cd

Browse files
committed
default config in .monorobot.json
1 parent 8a78d71 commit f44d9cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

documentation/config_docs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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 `monorobot.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
4+
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.
45

56
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.
67

src/monorobot.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ let port =
6969

7070
let config =
7171
let doc = "name of the remote configuration file to retrieve from the root directory of a repository's main branch" in
72-
Arg.(value & opt string "monorobot.json" & info [ "config" ] ~docv:"CONFIG" ~doc)
72+
Arg.(value & opt string ".monorobot.json" & info [ "config" ] ~docv:"CONFIG" ~doc)
7373

7474
let secrets =
7575
let doc = "path to a local configuration file containing secrets to load on startup" in

0 commit comments

Comments
 (0)