Skip to content

Commit

Permalink
fixed webhook processing context
Browse files Browse the repository at this point in the history
  • Loading branch information
herlon214 committed Dec 14, 2021
1 parent 68ddf12 commit a06b89e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func WebhookHandler(webhookSecret string, sonar *sonarqube2.Sonarqube, gh scm2.S
queue <- func() error {
logrus.Infoln("Processing", webhook.Project.Key, "->", webhook.Branch.Name)

if err := PublishIssues(req.Context(), sonar, gh, webhook.Project.Key, webhook.Branch.Name); err != nil {
if err := PublishIssues(context.Background(), sonar, gh, webhook.Project.Key, webhook.Branch.Name); err != nil {
return err
}

Expand Down

0 comments on commit a06b89e

Please sign in to comment.