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

Is it possible to batch edit all repositories?

tiany4
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2019

I need to search and replace some hardcoded keys in many repos on bitbucket. Is there a way to automate the process?

1 answer

1 accepted

0 votes
Answer accepted
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 29, 2019

Hey @tiany4,

You might be able to use Code Search to find all of the hardcoded keys (note that there's a limit on file size of 320KB – bigger files are not indexed and don't appear in search results).

Unfortunately there's no batch repo edit operation, you'll need to make changes repo by repo.

You can create commits via REST API but note that this won't remove the key from repo history. If you need to wipe repo history as well, you need to use history rewrite which is more complex and can't be done via REST or UI, only in the local working copy.

Hope this helps. Let me know if you have any questions.

Cheers,
Daniil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events