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(
|
var bodyBuf bytes.Buffer
|
||||||
"User message:\n```\n%s\n```\nVersion: %s\n[Details](%s) / [Logs](%s)",
|
fmt.Fprintf(&bodyBuf, "User message:\n```\n%s\n```\n", p.Text)
|
||||||
p.Text,
|
for k, v := range p.Data {
|
||||||
p.Version,
|
fmt.Fprintf(&bodyBuf, "%s: `%s`\n", k, v)
|
||||||
listingURL+"/details.log.gz",
|
}
|
||||||
listingURL,
|
if p.Version != "" {
|
||||||
)
|
fmt.Fprintf(&bodyBuf, "Version: `%s`\n", p.Version)
|
||||||
|
}
|
||||||
|
fmt.Fprintf(&bodyBuf, "[Logs](%s)\n", listingURL)
|
||||||
|
body := bodyBuf.String()
|
||||||
|
|
||||||
return github.IssueRequest{
|
return github.IssueRequest{
|
||||||
Title: &title,
|
Title: &title,
|
||||||
|
|
Reference in a new issue