Skip to content
Snippets Groups Projects
Verified Commit 23e3f8b4 authored by Jordi Gómez's avatar Jordi Gómez
Browse files

fix: updating gh IssueComment usage

parent 8b051c71
No related branches found
No related tags found
No related merge requests found
Pipeline #73224 failed
......@@ -141,9 +141,9 @@ public class MockGithubAPI implements GithubAPI {
String repoFullName = organization + '/' + repo;
GithubIssueComment comment = GithubIssueComment
.builder()
.setId(0)
.setId(Long.valueOf(0))
.setBody(commentRequest.getBody())
.setUser(GithubIssueComment.GithubUser.builder().setId(githubBotConfig.getBotId().orElse(0)).build())
.setUser(GithubIssueComment.GithubUser.builder().setId(Long.valueOf(githubBotConfig.getBotId().orElse(0))).build())
.build();
comments.computeIfAbsent(repoFullName, k -> new HashMap<>()).computeIfAbsent(issueNumber, k -> new ArrayList<>()).add(comment);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment