From 2f92c53a2a8670d58ee8ddac9e6462fd76614222 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Fri, 13 Oct 2023 17:05:15 +0200 Subject: [PATCH] Closes request #33993: Pull request title should use the "raw" title (#393) For most usages within (all at the moment?) the usage of the "raw" title is preferable as we cannot render HTML. This contribution uses the "raw" title for the existing `::getTitle()` method, if later on we also need the HTML version another can be added. --- .../client/internals/entities/GitPullRequestEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/jenkins/plugins/tuleap_api/client/internals/entities/GitPullRequestEntity.java b/src/main/java/io/jenkins/plugins/tuleap_api/client/internals/entities/GitPullRequestEntity.java index ad9f87c2..a7a6f3c2 100644 --- a/src/main/java/io/jenkins/plugins/tuleap_api/client/internals/entities/GitPullRequestEntity.java +++ b/src/main/java/io/jenkins/plugins/tuleap_api/client/internals/entities/GitPullRequestEntity.java @@ -17,7 +17,7 @@ public class GitPullRequestEntity implements GitPullRequest { public GitPullRequestEntity( @JsonProperty("id") String id, - @JsonProperty("title") String title, + @JsonProperty("raw_title") String title, @JsonProperty("repository") GitRepositoryReferenceEntity sourceRepository, @JsonProperty("repository_dest") GitRepositoryReferenceEntity destinationRepository, @JsonProperty("branch_src") String sourceBranch,