Skip to content

Commit

Permalink
brugh
Browse files Browse the repository at this point in the history
  • Loading branch information
san7890 committed Aug 16, 2024
1 parent 75bb99a commit cbc0971
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report_form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ body:
- type: input
id: reporting-version
attributes:
label: Reporting Version
label: Client Version
description: |
The BYOND version you are using to report this issue. You can find this information in the bottom right corner of the BYOND client.
The BYOND version you are using to report this issue. You can find this information in the bottom left corner of the "About BYOND" window in the BYOND client.
placeholder: "515.1642"
- type: textarea
id: issue-summary
Expand Down
9 changes: 6 additions & 3 deletions interface/interface.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
var/base_link = githuburl + "/issues/new?template=bug_report_form.yml"
var/list/concatable = list(base_link)

var/client_version = "[byond_version].[byond_build]"
concatable += ("&reporting-version=" + client_version)

// the way it works is that we use the ID's that are baked into the template YML and replace them with values that we can collect in game.
if(GLOB.round_id)
concatable += ("&round-id=" + GLOB.round_id)
Expand All @@ -82,12 +85,12 @@
for(var/entry in GLOB.revdata.testmerge)
var/datum/tgs_revision_information/test_merge/tm = entry
all_tms += "- \[[tm.title]\]([githuburl]/pull/[tm.number])"
var/all_tms_joined = all_tms.Join("\n") // for some reason this can't go in the []
var/all_tms_joined = jointext(all_tms, "\n") // for some reason this can't go in the []

concatable += ("&test-merges=" + all_tms_joined)

var/url_params = "Reporting client version: [byond_version].[byond_build]\n\n[local_template]"
DIRECT_OUTPUT(src, link("[githuburl]/issues/new?template=bug_report_form.yml]"))
var/final_link = link(jointext(concatable, ""))
DIRECT_OUTPUT(src, final_link)
else
to_chat(src, span_danger("The Github URL is not set in the server configuration."))
return
Expand Down

0 comments on commit cbc0971

Please sign in to comment.