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

API call to rename (move, delete) project on Bitbucket Server

fmalina April 18, 2017

Is there an API call to rename (move, delete) project on Bitbucket Server?

Renaming a project is a serious operation that affects CI and URLs in all child repos for all involved developers, but sometimes it has to be done. I am implementing a management interface on top of our Bitbucket server instances with approval flow specific to our organistion.

 

1 answer

0 votes
fmalina April 20, 2017

It actually quite trivial with stashy https://github.com/RisingOak/stashy

project = stash.projects[PROJECT]
project.update(new_key=NEW_PROJECT_KEY)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events