Option to automatically create push event web hook when mirroring from Bitbucket Cloud
When importing a project from BitBucket Cloud using a Git URL I can enable mirroring, so that my repository on GitLab is kept in sync with the repository on BitBucket Cloud. Pull mirroring works by polling, which means the GitLab repository can lag behind its source by up to an hour. For this reason, GitLab has an API to trigger a pull. We should add the ability to create web hooks in Bitbucket with a single click so that mirroring is very fast.
This is also necessary for a good experience of GitLab CI/CD using an external repository.
Proposal
- add a workflow when creating a CI/CD only project to authenticate with Bitbucket Cloud, and create web hooks automatically for me
- add a workflow when configuring pull mirroring from the settings to create web hooks automatically for me
Edited by James Ramsay (ex-GitLab)