Skip to content

Commit

Permalink
remove sha from status_rules regex matching options
Browse files Browse the repository at this point in the history
  • Loading branch information
yasunariw committed Dec 23, 2020
1 parent fff93a7 commit 76b53f8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion documentation/config_docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
1 change: 0 additions & 1 deletion lib/rule.atd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
type comparable_field = [
| Context <json name="context">
| Description <json name="description">
| Sha <json name="sha">
| Target_url <json name="target_url">
] <ocaml repr="classic">

Expand Down
1 change: 0 additions & 1 deletion lib/rule.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76b53f8

Please sign in to comment.