Include details from the report in the github issue (#15)
... to make triaging easier.
This commit is contained in:
parent
0417e8d385
commit
9bbdf64e5f
1 changed files with 10 additions and 7 deletions
|
@ -323,13 +323,16 @@ func buildGithubIssueRequest(p payload, listingURL string) github.IssueRequest {
|
|||
}
|
||||
}
|
||||
|
||||
body := fmt.Sprintf(
|
||||
"User message:\n```\n%s\n```\nVersion: %s\n[Details](%s) / [Logs](%s)",
|
||||
p.Text,
|
||||
p.Version,
|
||||
listingURL+"/details.log.gz",
|
||||
listingURL,
|
||||
)
|
||||
var bodyBuf bytes.Buffer
|
||||
fmt.Fprintf(&bodyBuf, "User message:\n```\n%s\n```\n", p.Text)
|
||||
for k, v := range p.Data {
|
||||
fmt.Fprintf(&bodyBuf, "%s: `%s`\n", k, v)
|
||||
}
|
||||
if p.Version != "" {
|
||||
fmt.Fprintf(&bodyBuf, "Version: `%s`\n", p.Version)
|
||||
}
|
||||
fmt.Fprintf(&bodyBuf, "[Logs](%s)\n", listingURL)
|
||||
body := bodyBuf.String()
|
||||
|
||||
return github.IssueRequest{
|
||||
Title: &title,
|
||||
|
|
Reference in a new issue