Skip to content

Commit

Permalink
fix: process multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
olegsu committed Dec 5, 2021
1 parent e155de2 commit b09b7b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/http/handlers/github_webook.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func GithubWebhook(cnf config.Config) func(http.ResponseWriter, *http.Request) {

func processComment(ctx context.Context, lgr *logger.Logger, body GithubWebhookBody, client *github.Client, prbot PrBotFile) error {
errs := []error{}
lines := strings.Split(body.Comment.Body, "\n")
lines := strings.Split(body.Comment.Body, "\\n")
for _, l := range lines {
tokens := strings.Split(l, " ")
if len(tokens) == 1 {
Expand Down

0 comments on commit b09b7b6

Please sign in to comment.