From 76b53f88c5c777bfd8cddca28919279300e3f23c Mon Sep 17 00:00:00 2001 From: Yasunari Watanabe Date: Tue, 22 Dec 2020 13:03:04 +0800 Subject: [PATCH] remove sha from status_rules regex matching options --- documentation/config_docs.md | 2 +- lib/rule.atd | 1 - lib/rule.ml | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/documentation/config_docs.md b/documentation/config_docs.md index 97b671c1..d93d04b3 100644 --- a/documentation/config_docs.md +++ b/documentation/config_docs.md @@ -222,7 +222,7 @@ You can optionally provide a **status condition** to specify additional requirem ```json { "match": { - "field": "context" | "description" | "sha" | "target_url", + "field": "context" | "description" | "target_url", "re": string // a regular expression } } diff --git a/lib/rule.atd b/lib/rule.atd index ebf9736e..d3bc1fd5 100644 --- a/lib/rule.atd +++ b/lib/rule.atd @@ -2,7 +2,6 @@ type comparable_field = [ | Context | Description -| Sha | Target_url ] diff --git a/lib/rule.ml b/lib/rule.ml index 400b6843..29451a82 100644 --- a/lib/rule.ml +++ b/lib/rule.ml @@ -10,7 +10,6 @@ module Status = struct let value_of_field = function | Context -> Some notification.context | Description -> notification.description - | Sha -> Some notification.sha | Target_url -> notification.target_url in let rec match_condition = function