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 6d46c79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/http/handlers/github_webook.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ func processComment(ctx context.Context, lgr *logger.Logger, body GithubWebhookB
errs := []error{}
lines := strings.Split(body.Comment.Body, "\n")
for _, l := range lines {
if l == "\r" {
continue
}
tokens := strings.Split(l, " ")
if len(tokens) == 1 {
continue
Expand Down

0 comments on commit 6d46c79

Please sign in to comment.