Skip to content

Commit eaad896

Browse files
zakiskchmouel
authored andcommitted
Set EventType for push event in ParsePayload of Bitbucket server
set EvnetType for push event in ParsePayload of Bitbucket server as done in other git provider e.g. Github, Gitea etc. Signed-off-by: Zaki Shaikh <[email protected]>
1 parent 1f56904 commit eaad896

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/provider/bitbucketserver/parse_payload.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ func (v *Provider) ParsePayload(_ context.Context, _ *params.Run, request *http.
155155
}
156156
v.pullRequestNumber = e.PullRequest.ID
157157
case *types.PushRequestEvent:
158-
processedEvent.TriggerTarget = "push"
158+
processedEvent.TriggerTarget = triggertype.Push
159+
processedEvent.EventType = triggertype.Push.String()
159160
processedEvent.Organization = e.Repository.Project.Key
160161
processedEvent.Repository = e.Repository.Slug
161162
processedEvent.SHA = e.Changes[0].ToHash

0 commit comments

Comments
 (0)