You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type tristate = [ True | False | Once <json name="once"> ] <ocaml repr="classic"> <json adapter.ocaml="Common.Tristate">
2
+
3
+
type status_state = {
4
+
success: tristate;
5
+
failure: bool;
6
+
pending: bool;
7
+
error: bool;
8
+
?cancelled: string option; (* if specified, it will use the string as regex to match the description from the payload to determine if the status_state is cancelled *)
9
+
}
10
+
11
+
(* A filename matches a prefix rule with the channel name if it isn't in the ignore
12
+
list and it is in the allow list. If multiple prefix rules match for a given
13
+
file, the one to match with the longest prefix is used.
14
+
15
+
If a commit affects 3 files:
16
+
- some/dir/a
17
+
- some/dir/b
18
+
- some/other/dir/c
19
+
20
+
And we are only interested by commits affecting files in some/dir
21
+
22
+
allow should be ["some/dir"]
23
+
24
+
or
25
+
26
+
ignore should be ["some/other"]
27
+
*)
28
+
type prefix_rule = {
29
+
allow : string list; (* empty list means match any *)
30
+
~ignore : string list;
31
+
channel_name <json name="channel"> : string;
32
+
}
33
+
34
+
(* A payload matches a label rule with a channel name if absent from the ignore list
0 commit comments