Option to automatically create push event web hook when mirroring from Bitbucket Server
When importing a project from BitBucket Server using a Git URL I can enable mirroring, so that my repository on GitLab is kept in sync with the repository on BitBucket Server. 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 Server 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 Server, 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)