It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

1 vote

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
Posted in Bitbucket

Share your software development horror stories!

Hey Community! I work on the Bitbucket product marketing team. With Halloween approaching, we wanted to discuss a topic tailor-made for October: development horror stories. Whether it was a lurk...

624 views 6 2
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you