Merge pull request #3111 from Citadel-Station-13/upstream-merge-30998

[MIRROR] Issues created with the report issue button will contain the round ID
This commit is contained in:
LetterJay
2017-10-03 20:15:11 -04:00
committed by GitHub
+3 -1
View File
@@ -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, "<span class='danger'>The Github URL is not set in the server configuration.</span>")
return