Hi team,
One of my team members is not able to do a Pull request.
In our practice, we have a user group and add team members with read access.
Intention:
When members want to do code changes, by default they can't commit and should check the create a pull request option and a Pull request should be created.
This approach was working and no issues till now.
I recently observed that the new team members were given Read access to the repo, but they were not able to create a pull request.
Can someone help me understand what could be the problem?
Thanks
Hi Gopi,
Thank you for reaching out.
If a user has read-only access to a repo, then they need to first create a fork of the repo, make changes in the fork, and then raise a PR from the fork to the parent repo.
I would need some additional details so I can better help you:
You could also ask one of the affected team members to post a reply here with this info.
Kind regards,
Theodora
Hi Theodora,
Thanks for your response.
Working scenario for all members:
Members will make a change to file in a repo and select Create a pull request for this change and commit changes. Then reviewer will review and merge the changes accordingly.
Note: Members got Read access for that specific repo by adding them to the group at repo level permission. Only selected reviewers got write access.
Problem:
Recently, a new team member joined, we added them to the same group and they got read access.
When they tried to commit changes, it threw an error saying " We had trouble creating your fork."
What could be the issue with this?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gopi,
Thank you for the details.
This looks like it may be a bug. I see a bug report for that error message that was fixed in March 2023, but there might be a regression:
https://jira.atlassian.com/browse/BCLOUD-22516
Workaround:
Could you ask this team member to manually create a fork for the repo, make changes in the fork, and then create a pull request?
While viewing the Source page of the repo on Bitbucket website, if the user selects the 3 dots next to the Clone button, they should see the option Fork this repository.
Details for investigation:
I would also like to ask if you could provide some more details to understand what may be causing this.
When your team member has this Commit changes dialog open, can they do the following?
Could you please let me know what is the Response for each request with 4xx or 5xx error?
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Theodora,
At the moment, I asked them to fork and do a pull request. And that approach is working.
I can share more details for investigation.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gopi,
Thank you for the update, it's good to hear that the workaround works for your team member.
I went ahead and reopened the public bug report I shared earlier. Please feel free to share additional details when you have some time and I will include them in the bug report.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are very welcome, please feel free to reach out if you ever need anything else.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.