do not backtick quote the user message, given it contains GH urls now
This commit is contained in:
parent
7f9cd51ede
commit
10c36dc480
2 changed files with 3 additions and 3 deletions
|
@ -496,7 +496,7 @@ func buildGithubIssueRequest(p parsedPayload, listingURL string) github.IssueReq
|
|||
}
|
||||
|
||||
var bodyBuf bytes.Buffer
|
||||
fmt.Fprintf(&bodyBuf, "User message:\n```\n%s\n```\n", p.UserText)
|
||||
fmt.Fprintf(&bodyBuf, "User message:\n\n%s\n\n", p.UserText)
|
||||
for k, v := range p.Data {
|
||||
fmt.Fprintf(&bodyBuf, "%s: `%s`\n", k, v)
|
||||
}
|
||||
|
|
|
@ -395,7 +395,7 @@ riot-web
|
|||
if *issueReq.Title != "test words." {
|
||||
t.Errorf("Title: got %s, want %s", *issueReq.Title, "test words.")
|
||||
}
|
||||
expectedBody := "User message:\n```\n\ntest words.\n```"
|
||||
expectedBody := "User message:\n\n\ntest words.\n"
|
||||
if !strings.HasPrefix(*issueReq.Body, expectedBody) {
|
||||
t.Errorf("Body: got %s, want %s", *issueReq.Body, expectedBody)
|
||||
}
|
||||
|
@ -421,7 +421,7 @@ Content-Disposition: form-data; name="text"
|
|||
if *issueReq.Title != "Untitled report" {
|
||||
t.Errorf("Title: got %s, want %s", *issueReq.Title, "Untitled report")
|
||||
}
|
||||
expectedBody := "User message:\n```\n\n```"
|
||||
expectedBody := "User message:\n\n\n"
|
||||
if !strings.HasPrefix(*issueReq.Body, expectedBody) {
|
||||
t.Errorf("Body: got %s, want %s", *issueReq.Body, expectedBody)
|
||||
}
|
||||
|
|
Reference in a new issue