Skip to content

Commit

Permalink
temporary R0 rule
Browse files Browse the repository at this point in the history
  • Loading branch information
the-right-joyce committed Sep 28, 2023
1 parent 02f1cb8 commit 87ad5a9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ruled_labels/specs_polkadot-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,10 @@ rules:
spec:
when: !some_of [D*]
require: !one_of [D*]

- name: Enforce R0-silent
id: enforce_r0
tags:
spec:
when: !some_of [A1]
require: !all_of [R0]
11 changes: 11 additions & 0 deletions ruled_labels/tests_polkadot-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,16 @@ specs:
filter:
id: [ single_d ]
labels: [ R0, D3, T10 ]
expected: true

- name: Pass - A1 and R0
filter:
id: [ enforce_r0 ]
labels: [ A1, D3, R0 ]
expected: true

- name: Fail - R0 missing
filter:
id: [ enforce_r0 ]
labels: [ A1, T9, D2 ]
expected: true

0 comments on commit 87ad5a9

Please sign in to comment.