fix(deps): update dependency org.gitlab4j:gitlab4j-api to v6.0.0-rc.10
This commit is contained in:
1 parent
7c960ddbdc
commit
069002a534
3 files changed
+87
-12
No files matched your search
@@ -90,13 +90,12 @@ public class ReportIssueTask extends ModalTask {
|
||||
gitLabApi.setRequestTimeout(1000, 5000);
|
||||
|
||||
String title = String.format("Bug report: %s", modalTitle.getAsString());
|
||||
StringBuilder description = new StringBuilder();
|
||||
description.append("Issue reported from user of bot\n\n");
|
||||
description.append("User: ").append(user.getName()).append(String.format("[%s]", user.getId())).append("\n\n");
|
||||
description.append("Last Sentry ID: ").append(Sentry.getLastEventId()).append("\n\n");
|
||||
description.append("Description from user: \n\n").append(modalDescription.getAsString());
|
||||
String description = "Issue reported from user of bot\n\n" +
|
||||
"User: " + user.getName() + String.format("[%s]", user.getId()) + "\n\n" +
|
||||
"Last Sentry ID: " + Sentry.getLastEventId() + "\n\n" +
|
||||
"Description from user: \n\n" + modalDescription.getAsString();
|
||||
|
||||
Issue issue = gitLabApi.getIssuesApi().createIssue(projectId, title, description.toString());
|
||||
Issue issue = gitLabApi.getIssuesApi().createIssue(projectId, title, description);
|
||||
|
||||
context.reply(String.format("Issue was successfully created: %s", issue.getWebUrl()));
|
||||
|
||||
|
||||
Reference in new issue
Block a user