Skip to content

Commit 76a7905

Browse files
committed
cfg: make status_rules optional
1 parent 8d55742 commit 76a7905

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

documentation/config_docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Refer [here](https://docs.github.com/en/free-pro-team@latest/developers/webhooks
3232
| `main_branch_name` | main branch used for the repo; filtering notifications about merges of main into other branches, and constraining prefix rule application | main branch related features disabled |
3333
| `label_rules` | label rules config object | required field |
3434
| `prefix_rules` | prefix rules config object | required field |
35-
| `status_rules` | status rules config object | required field |
35+
| `status_rules` | status rules config object | all status notifications are ignored |
3636

3737
## Label Options
3838

lib/config.atd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type label_rules = {
2727
type config = {
2828
prefix_rules : prefix_rules;
2929
label_rules : label_rules;
30-
status_rules : status_rules;
30+
~status_rules <ocaml default="{allowed_pipelines = Some []; rules = []}"> : status_rules;
3131
?main_branch_name : string nullable; (* the name of the main branch; used to filter out notifications about merges of main branch into other branches *)
3232
}
3333

0 commit comments

Comments
 (0)