Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

temporary R0 rule #36

Merged
merged 2 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
13 changes: 12 additions & 1 deletion 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

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