Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,16 @@ public void clearLog() {
*/
public void reportIssue() {
try {
String issueTitle = "Automatic Bug Report - " + dateFormat.format(date);
// system info
// System info
String systemInfo = String.format("JabRef %s%n%s %s %s %nJava %s", buildInfo.getVersion(), BuildInfo.OS,
BuildInfo.OS_VERSION, BuildInfo.OS_ARCH, BuildInfo.JAVA_VERSION);
// steps to reproduce
// Steps to reproduce
String howToReproduce = "Steps to reproduce:\n\n1. ...\n2. ...\n3. ...";
// log messages
// Log messages
String issueDetails = "<details>\n" + "<summary>" + "Detail information:" + "</summary>\n\n```\n"
+ getLogMessagesAsString(allMessagesData) + "\n```\n\n</details>";
clipBoardManager.setContent(issueDetails);
// bug report body
// Bug report body
String issueBody = systemInfo + "\n\n" + howToReproduce + "\n\n" + "Paste your log details here.";

dialogService.notify(Localization.lang("Issue on GitHub successfully reported."));
Expand All @@ -114,7 +113,6 @@ public void reportIssue() {
URIBuilder uriBuilder = new URIBuilder()
.setScheme("https").setHost("github.com")
.setPath("/JabRef/jabref/issues/new")
.setParameter("title", issueTitle)
.setParameter("body", issueBody);
JabRefDesktop.openBrowser(uriBuilder.build().toString());
} catch (IOException | URISyntaxException e) {
Expand Down