Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#496 fix to omit labels if it is not defined #500

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

adonisgarciac
Copy link
Contributor

What does this PR do?

As labels are defined, they always will send something even though they are not defined as code. It is due to default([]) defined for "related.labels". With this change, labels will be omited if they are not defined as code.

How should this be tested?

Create JT, WFJT or Schedules as code with defined labels and after that, empty the labels defining it:

labels: []

Is there a relevant Issue open for this?

resolves #496

Copy link
Contributor

@silvinux silvinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Nice and easy solution.

Copy link
Contributor

@ivarmu ivarmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ivarmu ivarmu merged commit d9145f0 into redhat-cop:devel Feb 14, 2023
@adonisgarciac adonisgarciac deleted the issue_496 branch August 11, 2023 10:19
przemkalit pushed a commit to przemkalit/aap_configuration that referenced this pull request Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How can related labels be defined as code for JT/WFJT/WFNodes
3 participants