How do I manage forks in Stash?

Hi,

I know that some users created forks of repositories, but there is no way for admin to find out which repos are forked and there is no way to find who forked what.

The reason that I want to do that is that I may want to purge or archive abandoned/stale forks.

It would be nice to have a view on forks.

Thanks!

Aleksey Maksimov

1 answer

This widget could not be displayed.

Stash currently does not have a view that show the forks of a repository, but there are still a few ways you can see the forks for a given repository.

There's a REST endpoint you can use:

GET /rest/api/latest/projects/PROJECT_KEY/repos/repo_slug/forks

The same endpoint is used in the repository selector in the dropdowns in the 'Create Pull Request' dialogue.

Hope this helps,

Cheers,

Michael

Do you plan on adding a "Forks" tab like "Branches" in the future? I've got a very simplistic plugin that does this, but lacks some features and polish, and wanted to know if this was a planned feature to Stash.

Hi Larry,

You might be interested in voting for:

https://jira.atlassian.com/browse/STASH-3531

I suspect it will happen, but it's not on our immediately roadmap.

Charles

@Larry Shatzer Do you have a link to said (fork display) plugin? Any chance it's open source? Was considering writing my own, but if one is already out there, no reason in duplicating.

It's not public, nor has it been updated or tested with anything past 2.12 version of Stash. So I'm not even sure it would work any more.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,354 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you