Skip to content

Commit

Permalink
Set EventType for push event in ParsePayload of Bitbucket server
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
zakisk authored and chmouel committed Jan 21, 2025
1 parent 1f56904 commit eaad896
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/provider/bitbucketserver/parse_payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ func (v *Provider) ParsePayload(_ context.Context, _ *params.Run, request *http.
}
v.pullRequestNumber = e.PullRequest.ID
case *types.PushRequestEvent:
processedEvent.TriggerTarget = "push"
processedEvent.TriggerTarget = triggertype.Push
processedEvent.EventType = triggertype.Push.String()
processedEvent.Organization = e.Repository.Project.Key
processedEvent.Repository = e.Repository.Slug
processedEvent.SHA = e.Changes[0].ToHash
Expand Down

0 comments on commit eaad896

Please sign in to comment.