Missed Team ’24? Catch up on announcements here.

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

Sync a fork via script

Tomás Lahoz January 23, 2019

Greetings,

Right now, we have an 'upstream' project from which our developers create a fork to develop their features. Obviously, as the documentation says:

After you fork a repository, the original repository is likely to evolve as other users commit changes to it. These changes do not appear in your fork automatically. To find out if your fork is missing commits, at the bottom of the Repository details card of your fork, you'll see a button with Sync (# commits behind). Click this button to pull these commits into your fork.

We're trying to automatize this synchronization of our forks with their upstream via some script to do the same as this button without human intervention. I've been exploring the API v2.0 but failed to find something similar to this bitbucket server API call:

/rest/sync/1.0/projects/{projectKey}/repos/{repositorySlug}/synchronize) 

that works for bitbucket cloud one. Is there any that I've failed to view, another way or workaround to do it?

Many thanks!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events