Skip to content

Commit

Permalink
Merge pull request koderover#1176 from ddh27/fixwebhookbranch
Browse files Browse the repository at this point in the history
Fixed webhook branch being replaced
  • Loading branch information
flyer103 authored Mar 17, 2022
2 parents 014f7d0 + 8869dfe commit abd3edd
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,6 @@ func TriggerWorkflowByGitlabEvent(event interface{}, baseURI, requestID string,
branref = mergeEvent.ObjectAttributes.SourceBranch
}
prID = evt.ObjectAttributes.IID
item.MainRepo.Branch = getBranchFromRef(mergeEvent.ObjectAttributes.TargetBranch)
case *gitlab.TagEvent:
tagEvent = evt
if (item.MainRepo.RepoOwner + "/" + item.MainRepo.RepoName) != tagEvent.Project.PathWithNamespace {
Expand Down

0 comments on commit abd3edd

Please sign in to comment.