mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Provide a fallback description for labels without a description
This commit is contained in:
parent
2e16029108
commit
215b17bd22
1 changed files with 3 additions and 1 deletions
|
@ -968,7 +968,9 @@ def get_pr_test_labels(
|
|||
if labels:
|
||||
ctx.info(f"Test labels for pull-request #{pr} on {repository}:")
|
||||
for name, description in sorted(labels):
|
||||
ctx.info(f" * [yellow]{name}[/yellow]: {description}")
|
||||
ctx.info(
|
||||
f" * [yellow]{name}[/yellow]: {description or '[red][No description][/red]'}"
|
||||
)
|
||||
if name.startswith("test:os:"):
|
||||
slug = name.split("test:os:", 1)[-1]
|
||||
if slug not in available and name != "test:os:all":
|
||||
|
|
Loading…
Add table
Reference in a new issue