Merge pull request #19975 from Broxzier/bugfix/issue-form-fields

Fix: version info is not filled on bug report
This commit is contained in:
Matthias Moninger 2023-04-21 00:45:26 +03:00 committed by GitHub
commit 698a06121f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -2722,10 +2722,11 @@ public:
break;
case DDIDX_FILE_BUG_ON_GITHUB:
{
std::string url = "https://github.com/OpenRCT2/OpenRCT2/issues/"
"new?assignees=&labels=bug&template=bug_report.yaml";
std::string url = "https://github.com/OpenRCT2/OpenRCT2/issues/new?"
"assignees=&labels=bug&template=bug_report.yaml";
// Automatically fill the "OpenRCT2 build" input
auto versionStr = String::URLEncode(gVersionInfoFull);
url.append("&openrct2_build=" + versionStr);
url.append("&f299dd2a20432827d99b648f73eb4649b23f8ec98d158d6f82b81e43196ee36b=" + versionStr);
OpenRCT2::GetContext()->GetUiContext()->OpenURL(url);
}
break;