diff --git a/.DS_Store b/.DS_Store index 4cec971..2135c94 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/ruled_labels/specs_polkadot-sdk.yaml b/ruled_labels/specs_polkadot-sdk.yaml index 9fcd18b..b34ed31 100644 --- a/ruled_labels/specs_polkadot-sdk.yaml +++ b/ruled_labels/specs_polkadot-sdk.yaml @@ -83,12 +83,12 @@ labels: - name: I10-unconfirmed description: Issue might be valid, but it's not yet known. color: 723bf6 - - name: I11-deprecation - description: The current issue/pr is, or should be, part of a deprecation process. - color: e0b062 - name: R0-silent description: Changes should not be mentioned in any release notes. - color: #f9f0f4 + color: f9f0f4 + - name: R1-breaking_change + description: This PR introduces a breaking change and should be highlighted in the upcoming release. + color: f9d0e0 - name: T0-node description: This PR/Issue is related to the topic “node”. color: fbffe0 @@ -134,8 +134,8 @@ labels: - name: T14-benchmarks description: This PR/Issue is related to benchmarking and weights. color: 5319e7 - - name: T15-RnD - description: This PR/Issue is part of technology research and development. + - name: T15-deprecation + description: The current issue/pr is, or should be, part of a deprecation process. color: 5319e7 - name: T16-system_parachains description: This PR/Issue is related to system parachains. @@ -149,4 +149,11 @@ rules: id: multiple_t tags: spec: - require: !some_of [T*] \ No newline at end of file + require: !some_of [T*] + + - name: Allow only one difficulty label + id: single_d + tags: + spec: + when: !some_of [D*] + require: !one_of [D*] diff --git a/ruled_labels/tests_polkadot-sdk.yaml b/ruled_labels/tests_polkadot-sdk.yaml index 6dde492..9b25f3f 100644 --- a/ruled_labels/tests_polkadot-sdk.yaml +++ b/ruled_labels/tests_polkadot-sdk.yaml @@ -18,4 +18,17 @@ specs: filter: id: [ multiple_t ] labels: [ A1, R0, T2, T10 ] + expected: true + + - name: Fail - Multiple difficulty labels + filter: + id: [ single_d ] + labels: [ A1, D0, D2, T10 ] + expected: false + + - name: Pass - Single difficulty label + filter: + id: [ single_d ] + labels: [ R0, D3, T10 ] + expected: true \ No newline at end of file