-
Notifications
You must be signed in to change notification settings - Fork 667
DYN-7310 - Modify Github Crash Report to Allow for "Issue Report" from Help Menu, and "Crash Report" from Crash #15775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f93d189
d1c7592
a86adba
3d57a4e
059637a
4f2b756
1645ab3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,30 @@ | ||
| using Dynamo.Configuration; | ||
| using Dynamo.Configuration; | ||
| using Dynamo.PackageManager; | ||
| using Dynamo.Utilities; | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
|
|
||
| namespace Dynamo.Wpf.Utilities | ||
| { | ||
| static class CrashUtilities | ||
| { | ||
| internal static string GithubNewIssueUrlFromCrashContent(object crashContent) | ||
| internal enum ReportType | ||
| { | ||
| Bug, | ||
| Crash | ||
| } | ||
|
|
||
| internal static string GithubNewIssueUrlFromCrashContent(object crashContent, ReportType reportType = ReportType.Crash) | ||
| { | ||
| var baseUri = new UriBuilder(Configurations.GitHubBugReportingLink); | ||
|
|
||
| var issueTitle = "Crash report from Dynamo {0}"; | ||
| var issueTitle = "{0} report from Dynamo {1}"; | ||
| var dynamoVersion = AssemblyHelper.GetDynamoVersion().ToString() ?? "2.1.0+"; | ||
|
|
||
| // append the title and body to the URL as query parameters | ||
| // making sure we properly escape content since stack traces may contain characters not suitable | ||
| // for use in URLs | ||
| var title = "title=" + Uri.EscapeDataString(string.Format(issueTitle, dynamoVersion)); | ||
| var title = "title=" + Uri.EscapeDataString(string.Format(issueTitle, reportType, dynamoVersion)); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's been a while, can you double check here if
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It appears to pull the string from the enum on the string formatting portion.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for checking @johnpierson maybe the string.Format took care of it underneath already. |
||
| var template = "template=issue.yml"; | ||
| var fields = "dynamo_version=" + Uri.EscapeDataString(dynamoVersion) | ||
| + "&os=" + Uri.EscapeDataString(Environment.OSVersion.ToString()) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.