@@ -9,10 +9,10 @@ module Status = struct
9
9
{ trigger = [ Success ]; condition = None ; policy = Allow_once };
10
10
]
11
11
12
- (* * ` match_rules n rs` returns the policy declared by the first rule in `rs`
13
- to match status notification `n` if one exists, falling back to
14
- the default rules otherwise. A rule `r` matches `n` if ` n.state` is in
15
- ` r.trigger` and `n` meets ` r.condition` . *)
12
+ (* * [ match_rules n rs] returns the policy declared by the first rule in [rs]
13
+ to match status notification [n] if one exists, falling back to
14
+ the default rules otherwise. A rule [r] matches [n] if [ n.state] is in
15
+ [ r.trigger] and [n] meets [ r.condition] . *)
16
16
let match_rules (notification : Github_t.status_notification ) ~rules =
17
17
let match_rule rule =
18
18
let value_of_field = function
@@ -48,10 +48,10 @@ module Prefix = struct
48
48
| Some main_branch -> String. equal main_branch branch
49
49
| None -> distinct
50
50
51
- (* * ` match_rules f rs` returns the channel name of a rule in `rs` that matches
52
- file name `f` with the longest prefix, if one exists. A rule `r` matches
53
- `f` with prefix length `l` , if `f` has no prefix in ` r.ignore` and `l` is
54
- the length of the longest prefix of `f` in ` r.allow` . An undefined or empty
51
+ (* * [ match_rules f rs] returns the channel name of a rule in [rs] that matches
52
+ file name [f] with the longest prefix, if one exists. A rule [r] matches
53
+ [f] with prefix length [l] , if [f] has no prefix in [ r.ignore] and [l] is
54
+ the length of the longest prefix of [f] in [ r.allow] . An undefined or empty
55
55
allow list is considered a prefix match of length 0. The ignore list is
56
56
evaluated before the allow list. *)
57
57
let match_rules filename ~rules =
@@ -91,9 +91,9 @@ module Prefix = struct
91
91
end
92
92
93
93
module Label = struct
94
- (* * ` match_rules l rs` returns the channel names of the rules in `rs` that
95
- allow label `l` , if one exists. A rule `r` matches label `l` , if `l` is
96
- not a member of ` r.ignore` and is a member of ` r.allow` . The label name
94
+ (* * [ match_rules l rs] returns the channel names of the rules in [rs] that
95
+ allow label [l] , if one exists. A rule [r] matches label [l] , if [l] is
96
+ not a member of [ r.ignore] and is a member of [ r.allow] . The label name
97
97
comparison is case insensitive. An undefined allow list is considered a
98
98
match. The ignore list is evaluated before the allow list. *)
99
99
let match_rules (label : Github_t.label ) ~rules =
0 commit comments