diff --git a/yogstation/code/modules/admin/verbs/adminhelp.dm b/yogstation/code/modules/admin/verbs/adminhelp.dm index ea7a65c12d61..525fcadfd386 100644 --- a/yogstation/code/modules/admin/verbs/adminhelp.dm +++ b/yogstation/code/modules/admin/verbs/adminhelp.dm @@ -209,6 +209,7 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new) . += " (IC)" . += " (RSLVE)" . += " (WIKI)" + . += " (BUG)" . += " (MHELP)" //private @@ -428,7 +429,27 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new) log_admin_private(msg) AddInteraction("Marked as WIKI issue by [usr.ckey]") Resolve(silent = TRUE) + +//Resolve ticket with bug message +/datum/admin_help/proc/GithubIssue(key_name = key_name_admin(usr)) + if(state != AHELP_ACTIVE) + return + + var/msg = "- AdminHelp marked as a Github issue by [usr.client.holder?.fakekey ? "an Administrator" : key_name(usr, 0, 0)]! -
" + msg += "You are reporting a Bug or Github Issue.
" + msg += "[CONFIG_GET(string/githuburl)]/issues/new?template=bug_report.md" + msg += "Please fill out the issues form with detailed information about the bug or other issue you have discovered.
" + + if(initiator) + to_chat(initiator, msg, confidential=TRUE) + SSblackbox.record_feedback("tally", "ahelp_stats", 1, "BUG") + msg = "Ticket [TicketHref("#[id]")] marked as BUG by [key_name]" + message_admins(msg) + log_admin_private(msg) + AddInteraction("Marked as BUG issue by [usr.ckey]") + Resolve(silent = TRUE) + //Show the ticket panel /datum/admin_help/proc/TicketPanel() var/reply_link = " Reply" @@ -563,6 +584,8 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new) Administer() if("wiki") WikiIssue() + if("bug") + GithubIssue() if("popup") PopUps()