Skip to content

Commit

Permalink
Change spelling from converBranch=>convertBranch
Browse files Browse the repository at this point in the history
Fixed func namespace of `convertBranch` webhook in the gitlab driver.
Updated parsePushHooks return statement to match
  • Loading branch information
Johnny M committed Oct 26, 2021
1 parent ca0f320 commit 4b0814b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scm/driver/gitlab/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func parsePushHook(data []byte) (scm.Webhook, error) {
// returns more metadata (commit details).
return convertPushHook(src), nil
case src.ObjectKind == "push" && src.After == "0000000000000000000000000000000000000000":
return converBranchHook(src), nil
return convertBranchHook(src), nil
case src.ObjectKind == "tag_push" && src.Before == "0000000000000000000000000000000000000000":
// TODO we previously considered returning a
// tag creation hook, however, the push hook
Expand Down Expand Up @@ -188,7 +188,7 @@ func convertPushHook(src *pushHook) *scm.PushHook {
return dst
}

func converBranchHook(src *pushHook) *scm.BranchHook {
func convertBranchHook(src *pushHook) *scm.BranchHook {
action := scm.ActionCreate
commit := src.After
if src.After == "0000000000000000000000000000000000000000" {
Expand Down

0 comments on commit 4b0814b

Please sign in to comment.