From dc41460926b9cbd04351113a1e12958715bf3916 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 3 Oct 2017 19:27:57 -0400 Subject: [PATCH 1/2] Issues created with the report issue button will contain the round ID (#30998) * Issues created with the report issue button will contain the round ID * Update interface.dm * More url encoding * URL ENCODE THE PLANET! * Server name * Fix trevis * Too many god damn fucking brackets here --- interface/interface.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interface/interface.dm b/interface/interface.dm index 9d420e9821..a67cc5d290 100644 --- a/interface/interface.dm +++ b/interface/interface.dm @@ -65,7 +65,9 @@ message += GLOB.revdata.GetTestMergeInfo(FALSE) if(tgalert(src, message, "Report Issue","Yes","No")=="No") return - src << link("[githuburl]/issues/new") + var/static/issue_template = file2text(".github/ISSUE_TEMPLATE.md") + var/servername = CONFIG_GET(string/servername) + src << link("[githuburl]/issues/new[GLOB.round_id ? "?body=[url_encode("Issue reported from Round ID: [GLOB.round_id][servername ? " ([servername])" : ""]\n\n[issue_template]")]" : ""]") else to_chat(src, "The Github URL is not set in the server configuration.") return