-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow maintainers with write access to an org repo to push changes to a contributor's branch directly #15473
Comments
Just tried another scenario to double check the behavior, and it seems like there are also permission issues when trying to push to an org repo directly, even with full (admin) access to the repo. Here a list of steps using https://github.com/jupyterlab/jupyterlab as an example (an organization repo on which I have admin access):
Trying to publish the branch on the gitpod-org-repo-permission-denied.mp4However adding a new remote pointing to my fork and pushing to it works fine: gitpod-org-repo-push-fork.mp4 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
It would be nice to keep the issue open a bit longer as having support for this workflow would be super helpful to maintainers! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Commenting here after the stale bot :) Still thinking it would be a great feature! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Commenting again here as this would still be useful! |
We are not doing something special here, we just use the git token that we got from your OAuth. |
Oh that would explain why. I just granted access for another org, opened a PR created from the fork of a contributor, made some changes and pushed to the fork successfully. After pushing the changes to the branch, the following notification showed up. Not sure it's relevant though since the changes were pushed successfully? Thanks @svenefftinge! |
This can likely be closed then. Or this page in the docs could have a small mention of this use case too: https://www.gitpod.io/docs/configure/authentication/github#errors-with-private-repositories-on-github-orgs |
Is your feature request related to a problem? Please describe
Many open-source projects have adopted the following workflow for making contributions:
Which can also be illustrated as follows:
Some of these contributors can be maintainers with write access to the central repo, some are casual contributors without such rights. These maintainers can usually push directly to the branch of the contributor repo, for example to make minor changes to a PR.
However Gitpod does not seem to be allowing this at the moment.
Describe the behaviour you'd like
Just like the GitHub UI allows maintainer for pushing to the branch of the contributor:
It should also be possible to push to the branch of the contributor from a Gitpod instance from the command line with
git push origin branch-name
.Here is a video summarizing the desired workflow. Attempting to do this on Gitpod gives a 403:
gitpod-workflow.mp4
Whereas it is possible to do this via the GitHub UI:
demo-commit-github.mp4
Describe alternatives you've considered
I have been using the following workarounds for now:
Each of these have drawbacks:
Additional context
This was also briefly discussed on Twitter a couple of months ago: https://twitter.com/jtpio/status/1555533757695856640
Thanks for the help!
The text was updated successfully, but these errors were encountered: