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
This commit is contained in:
Jordan Brown
2017-10-03 19:27:57 -04:00
committed by CitadelStationBot
parent aec96bbbbe
commit dc41460926
+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