Skip to content

Commit

Permalink
update labels (#35)
Browse files Browse the repository at this point in the history
* update

move deprecation label to T
add breaking change label (temporary solution)
add rule for D* labels +test

* Update ruled_labels/specs_polkadot-sdk.yaml

* Update ruled_labels/tests_polkadot-sdk.yaml

---------

Co-authored-by: Chevdor <[email protected]>
  • Loading branch information
the-right-joyce and chevdor authored Sep 21, 2023
1 parent 1b5dbce commit 02f1cb8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
Binary file modified .DS_Store
Binary file not shown.
21 changes: 14 additions & 7 deletions ruled_labels/specs_polkadot-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -149,4 +149,11 @@ rules:
id: multiple_t
tags:
spec:
require: !some_of [T*]
require: !some_of [T*]

- name: Allow only one difficulty label
id: single_d
tags:
spec:
when: !some_of [D*]
require: !one_of [D*]
13 changes: 13 additions & 0 deletions ruled_labels/tests_polkadot-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 02f1cb8

Please sign in to comment.