RFR: 1948: User not getting push access to backport branch

Erik Joelsson erikj at openjdk.org
Wed Jun 14 20:56:23 UTC 2023


On Wed, 14 Jun 2023 20:46:04 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

> When a user creates a backport PR using the /backport command, they are supposed to get push access to the branch in the fork repository. On GitHub, this has stopped working (assuming it ever worked). Experimentation shows that for a user to be eligible for listing in a branch protection rule, that user must first have push access in the repository. Just having a pending invite is not enough. When a user issues the /backport command, an invite is automatically sent to become a collaborator with push access in the repository, but the user has to accept it before it comes into effect.
> 
> Given this, I don't see a way to consistently provide branch level push access restrictions for the fork repositories. But instead of removing the feature completely, we can apply it when possible. The first /backport by a user will not get exclusive push access, but if the user accepts the invite before the next time, then from then on, any new backport branches will be protected. Not sure if this is worth it, but since we have the functionality, we may as well apply it when possible.

I seem to have messed up my local branches. Please wait with reviewing.

-------------

PR Comment: https://git.openjdk.org/skara/pull/1532#issuecomment-1591959482


More information about the skara-dev mailing list