Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Notice for changed Repository URL

mbgvhh June 4, 2019

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.

1 answer

0 votes
Pankaj Jangid
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 4, 2019

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.

mbgvhh June 4, 2019

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?

Pankaj Jangid
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 4, 2019

Yes. In that case and message on the top of your repository would do. In fact that looks like the only option.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events