Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [CODE-727]: change branch in source and target for harness provider #264

Merged
merged 6 commits into from
Aug 31, 2023
Merged
Prev Previous commit
Next Next commit
fix: [CODE-727]: change to gitness from harness
  • Loading branch information
abhinav-harness committed Aug 30, 2023
commit 8d6a8e37135477a664e0912022979b5704c0f6c3
4 changes: 2 additions & 2 deletions scm/driver/harness/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (s *webhookService) Parse(req *http.Request, fn scm.SecretFunc) (scm.Webhoo
}

var hook scm.Webhook
switch req.Header.Get("X-Gitness-Trigger") {
switch req.Header.Get("X-Harness-Trigger") {
// case "create":
// hook, err = s.parseCreateHook(data)
// case "delete":
Expand Down Expand Up @@ -57,7 +57,7 @@ func (s *webhookService) Parse(req *http.Request, fn scm.SecretFunc) (scm.Webhoo
}

secret := req.FormValue("secret")
signature := req.Header.Get("X-Gitness-Signature")
signature := req.Header.Get("X-Harness-Signature")

// fail if no signature passed
if signature == "" && secret == "" {
Expand Down