Skip to content

Commit

Permalink
remove errant other file update
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Jan 11, 2024
1 parent c938230 commit 99b65f8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scm/github/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,7 @@ func (c *client) processPushEvent(h *library.Hook, payload *github.PushEvent) (*
b.SetClone(repo.GetCloneURL())
b.SetSource(payload.GetHeadCommit().GetURL())
b.SetTitle(fmt.Sprintf("%s received from %s", constants.EventPush, repo.GetHTMLURL()))

sanitizedMessage := strings.Replace(payload.GetHeadCommit().GetMessage(), `\`, `\\`, -1)

b.SetMessage(sanitizedMessage)
b.SetMessage(payload.GetHeadCommit().GetMessage())
b.SetCommit(payload.GetHeadCommit().GetID())
b.SetSender(payload.GetSender().GetLogin())
b.SetAuthor(payload.GetHeadCommit().GetAuthor().GetLogin())
Expand Down

0 comments on commit 99b65f8

Please sign in to comment.