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 Bitbucket Server PR decoration #284

Merged
merged 1 commit into from
Jan 23, 2021

Conversation

mKeRix
Copy link
Contributor

@mKeRix mKeRix commented Dec 7, 2020

In #237 the property names of the annotation model were changed to fix a bug with how code annotations are reported to Bitbucket Cloud. This PR however did not take into consideration that the previous naming was actually correct and required for Bitbucket Server. With this change Bitbucket Cloud will continue to receive the message as summary (API docs), while Bitbucket Server receives the message as message again (API docs). This closes #265.

I moved the @JsonProperty annotations to the getters so that they support overrides, as mixing property-level and method-level annotations does not work for this use case. Technically this is only needed for the message property, but for consistency reasons I did it for all. I verified that this is mapped correctly for both cloud and server now.

For the impatient I also published a snapshot release that you may use until the fix is merged here.

@mc1arke mc1arke merged commit 68aff70 into mc1arke:master Jan 23, 2021
@mc1arke
Copy link
Owner

mc1arke commented Jan 23, 2021

Merged. Thanks for the contribution!

@mKeRix mKeRix deleted the bitbucket-server-annotations branch January 30, 2021 22:04
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.

PR decoration for bitbucket fails in latest 1.5 release
2 participants