Description

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.

  • This change requires a documentation update
  • I have made corresponding changes to the documentation

Related Issue(s)

closes #994 /claim #994

Screenshots

https://github.com/user-attachments/assets/2fd121f0-282d-405a-8b65-33ebabdcc29d

Notes

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:

error_getOwnerAndRepoFromFullName

Claim

Total prize pool $50
Total paid $50
Status Approved
Submitted September 03, 2024
Last updated September 10, 2024

Contributors

AN

Ansuman Sahoo

@unsuman

100%

Sponsors

DA

Daytona

@daytonaio

$50 paid