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

Fix removing labels in 'Detect schema changes' job #2772

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

GijsCalis
Copy link
Contributor

@GijsCalis GijsCalis commented Apr 12, 2024

The builds were failing on trying to remove a label that is not present in the PR. This PR adds a checks if the label is set on a PR before removing.

But also the error message is wrong (example failed workflow):

[RUN] gh pr edit 2769 --remove-label json-schema
Unable to label PR with 'json-schema'

This PR also corrects the above error message and makes the error message for adding a label more clear.

Signed-off-by: Gijs Calis <51088038+GijsCalis@users.noreply.github.com>
@GijsCalis GijsCalis changed the title Fix error messages for add & remove label Fix error messages during workflow build for add & remove label Apr 12, 2024
Signed-off-by: Gijs Calis <51088038+GijsCalis@users.noreply.github.com>
@GijsCalis GijsCalis changed the title Fix error messages during workflow build for add & remove label Fix removing labels in 'Detect schema changes' job Apr 12, 2024
@spiffcs
Copy link
Contributor

spiffcs commented Apr 23, 2024

Thanks @GijsCalis! Good find and thanks for the update here.

@spiffcs spiffcs merged commit b90e7f9 into anchore:main Apr 23, 2024
11 checks passed
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.

2 participants