Fix Bitbucket Server PR decoration #284
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 asmessage
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 themessage
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.