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

Use query param for label deletion #510

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

Smaug123
Copy link
Contributor

@Smaug123 Smaug123 commented Oct 1, 2024

(I struggle greatly with Golang, so please assume that if it's possible to do anything wrong, I have done it wrong.)

The Confluence API is documented as preferring this endpoint when the label has slashes in.

I have not checked whether it's necessary to URL query-parameter escape this; maybe it is necessary?

(The whitespace change appears to satisfy go fmt, but surprised me.)

@mrueg mrueg marked this pull request as ready for review October 18, 2024 18:16
@mrueg
Copy link
Collaborator

mrueg commented Oct 18, 2024

Hi @Smaug123 the change looks good to me. Have you tested it yourself?

@Smaug123
Copy link
Contributor Author

I only have easy access to a rather ancient Confluence. I'll try and remember to check on Monday what testing I did.

@Smaug123
Copy link
Contributor Author

Smaug123 commented Oct 21, 2024

Yep, just tested this locally against our on-prem Confluence. I used <!-- Label: origin=foo/bar --> and deployed, observed that the label origin=foo/bar was added, then removed that line again, deployed, and observed that the label was removed. As far as my use-case goes, this change is correct.

@mrueg mrueg merged commit 82aebec into kovetskiy:master Oct 21, 2024
5 checks passed
@Smaug123 Smaug123 deleted the label-delete branch October 21, 2024 18:07
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