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

Updating a label with a question mark results in an error #1782

Open
gsmet opened this issue Jan 18, 2024 · 0 comments
Open

Updating a label with a question mark results in an error #1782

gsmet opened this issue Jan 18, 2024 · 0 comments

Comments

@gsmet
Copy link
Contributor

gsmet commented Jan 18, 2024

Describe the bug

In the Quarkus project, we used to have labels like triage/backport? (i.e. something that should be considered for backport but is not certain to be backported).

When working on some automation, I stumbled upon the fact that updating the label name via the API was not possible as the ? is not correctly escaped in the URI, thus the label not being found when fetched.

repository.getLabel("triage/backport?").update().name("triage/backport-3.6?").done();

would fail.

I wanted to log the problem so that we don't forget about it.
I renamed our labels for the time being.

I'll try to contribute a fix soon but feel free to beat me to it :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants