Skip to content

Commit

Permalink
fixup! fixup! fixup! feat: allow to customize the blocked labels
Browse files Browse the repository at this point in the history
Signed-off-by: Yoan Blanc <[email protected]>
  • Loading branch information
greut committed Nov 12, 2024
1 parent 060a3a2 commit 0a64d68
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/os_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ def get_replace_existing() -> bool:

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

if not blocked_labels:
return BLOCKED_LABELS
return BLOCKED_LABELS

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

@cache
def in_cluster() -> bool:
Expand Down

0 comments on commit 0a64d68

Please sign in to comment.