Let's say I have a repo with URL 'https://bitbucket.org/myoldID/reponame' and want to transfer it to 'https://bitbucket.org/mynewID/reponame'.
How can I inform Users who navigate to 'https://bitbucket.org/myoldID/reponame' that the URL changed and where they can find the repo now?
Is there an opportunity to redirect?
Or do I have to clone repo and push it to another User? I'd like to keep User including payment plans etc. so I'd prefer to just have a new workspace-ID - but without leaving Users navigating to old URLs with no Information and 404.
Best is to send an email to all the repository members. Good thing is that Bitbucket provides a feature that you may utilize to accomplish this task. However, a little work is required from your end also – do explore the Webhooks feature.
Go to Settings and the Webhooks. And create a Webhook for repo:transfer
trigger.
What you will be required to do is create a webservice to execute the send mail. This service will receive the payload as specified in this document - https://confluence.atlassian.com/bitbucket/event-payloads-740262817.html. Check out the payload for repo:transfer
trigger.
Thanks for that suggestion - I didn't know Webhooks yet, seems to be interesting!
But in my case it doesn't help because I don't know all our users - the software is opensource and the old Url has spread over the years. So best for us would be a simple message like "this repo moved to xx".
Not possible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. In that case and message on the top of your repository would do. In fact that looks like the only option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.