From 72c928f73c3657bfc2259d921ffd2e5e7b68ef32 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Thu, 31 Aug 2023 09:20:29 +0200 Subject: [PATCH] Closes request #33993: Pull request title should use the "raw" title 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,