Skip to content

Commit 0a64d68

Browse files
committed
fixup! fixup! fixup! feat: allow to customize the blocked labels
Signed-off-by: Yoan Blanc <[email protected]>
1 parent 060a3a2 commit 0a64d68

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: src/os_utils.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ def get_replace_existing() -> bool:
2020

2121
@cache
2222
def get_blocked_labels() -> list[str]:
23-
blocked_labels = os.getenv('BLOCKED_LABELS')
23+
if blocked_labels := os.getenv('BLOCKED_LABELS'):
24+
return [label.strip() for label in blocked_labels.split(',')]
2425

25-
if not blocked_labels:
26-
return BLOCKED_LABELS
26+
return BLOCKED_LABELS
2727

28-
return [label.strip() for label in blocked_labels.split(',')]
2928

3029
@cache
3130
def in_cluster() -> bool:

0 commit comments

Comments
 (0)