Hello gang!
Using git
Context:
What I can do:
What I cannot do (but wish I could do):
My solution was to ask John to give me read permissions to his fork and all is working now.
However, this feels like an unnecessary step. If I have access to his changes and can merge them to my repo, why couldn't I pull them to my local code to test them out? Am I missing something?
I searched online but found nothing that didn't assume I already had read permissions on the fork. Please forgive me if the question was already answered elsewhere.
Thank you in advance for your precious help and may this discussion enlighten others as well.
Hi Joey and welcome to the community!
In this scenario, did John created the fork under a workspace different than the one that owns the parent repo?
If a repo is owned by e.g. workspace-1 and someone forks it under their personal workspace or any workspace other than workspace-1, we don't automatically give access to the fork to any user of workspace-1. If the fork is owned by a different workspace, e.g. workspace-2, only user groups of workspace-2 will get access automatically (if they are configured for getting access automatically). So, this is a matter of repository ownership.
That being said, I understand the requirement to be able to fetch the PR code locally. This is not possible at the moment without having access to the fork, because PRs are not stored as refs in the destination repo. We have a feature request about this in our issue tracker:
Until this is implemented, a user will need to have access to the fork in order to be able to pull the code of a PR locally.
I also wanted to add here that if
- the repo is owned by workspace-1
- you are an admin of workspace-1, and the admins user group is configured to get access to all new repos in that workspace
- John is a member of a user group of workspace-1 that is allowed to create repos in workspace-1
then John could create their fork under workspace-1, which would give you access to the repo automatically. I just wanted to mention that as a way that would eliminate the step of John giving you access.
Please feel free to let me know if you have any questions.
Kind regards,
Theodora
Thank you for your answer.
I did what you suggested, giving John permission to create repositories in my workspace.
He then forked the project in my workspace and it worked like a charm.
Kind regards,
Joey
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.