This PR adds support for webhooks for Bitbucket prebuilds. It implements five methods namely webhook get, register, unregister, comparing commit ranges and parsing event data. Since the default Bitbucket package does not support parsing Push events, I have used "github.com/go-playground/webhooks"
instead. Additionally, this PR enhances error handling by making it more detailed and addresses issues with capitalized error messages.
closes #994 /claim #994
https://github.com/user-attachments/assets/2fd121f0-282d-405a-8b65-33ebabdcc29d
In the file pkg/gitprovider/bitbucket.go, I had to comment out
owner, repo, err := g.getOwnerAndRepoFromFullName(repositoryId)
if err != nil {
return nil, err
}
because it was causing this error:
Ansuman Sahoo
@unsuman
Daytona
@daytonaio