diff --git a/.github/pint/pint.hcl b/.github/pint/pint.hcl index bee0f6a6..cda3ebbf 100644 --- a/.github/pint/pint.hcl +++ b/.github/pint/pint.hcl @@ -1,3 +1,20 @@ ci { include = [".github/pint/rules/.*"] } + +rule { + match { kind = "recording" } + aggregate ".+" { + severity = "warning" + keep = ["job"] + } +} + +rule { + match { kind = "alerting" } + label "priority" { + severity = "bug" + value = "(1|2|3|4|5)" + required = true + } +} diff --git a/.github/pint/rules/1.yml b/.github/pint/rules/1.yml index 61824c9c..ee1c44ef 100644 --- a/.github/pint/rules/1.yml +++ b/.github/pint/rules/1.yml @@ -6,7 +6,7 @@ groups: for: 0s - alert: Service Is Down - expr: up{job="abc"} == 0 + expr: up{job="abc} == 0 - alert: Everything Is Down expr: up:sum == 0