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

Erik Joelsson erikj at
Wed Jun 14 21:26:19 UTC 2023

On Wed, 14 Jun 2023 20:46:04 GMT, Erik Joelsson <erikj at> 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.

This pull request has now been integrated.

Changeset: 9af46280
Author:    Erik Joelsson <erikj at>
Stats:     17 lines in 2 files changed: 16 ins; 1 del; 0 mod

1948: User not getting push access to backport branch

Reviewed-by: zsong



More information about the skara-dev mailing list