Allowing changes to a pull request branch created from a fork

For greater collaboration, you can allow commits on branches you've created from forks owned by your user account.

People with push access to the upstream repository of a fork owned by a user account can commit to the forked branches.

En este artículo

Only pull request authors can give upstream repository maintainers, or those with push access to the upstream repository, permission to make commits to their pull request's compare branch in a user-owned fork. To learn more about upstream repositories, see "About forks."

Pull request authors can give these permissions when they initially create a pull request from a user-owned fork or after they create the pull request. For more information, see "Creating a pull request from a fork."

You can set commit permissions when you first create a pull request from a fork. For more information, see "Creating a pull request from a fork." Additionally, you can modify an existing pull request to let repository maintainers make commits to your branch.

Enabling repository maintainer permissions on existing pull requests

  1. On GitHub Enterprise, navigate to the main page of the upstream repository of your pull request.

  2. Under the upstream repository name, click Pull requests. Issues and pull requests tab selection

  3. In the list of pull requests, navigate to the pull request that you'd like to allow commits on.

  4. En las bifurcaciones que pertenecen a un usuario, si no quieres permitir que las personas con acceso de escritura en el repositorio ascendente realicen cambios en tu solicitud de extracción, deselecciona Permitir ediciones de los mantenedores.

    Advertencia: Si tu bifuración contiene flujos de trabajo de GitHub Actions, la opción es Permitir que los mantenedores hagan ediciones y tengan acceso a los secretos. El permitir las ediciones en la rama de una bifurcación que contiene flujos de trabajo de GitHub Actions también permite que un mantenedor edite los flujos de trabajo del repositorio, lo cual podría revelar los valores de los secretos y otorgar acceso a otras ramas potencialmente.

    allow-maintainers-to-make-edits-sidebar-checkbox

Further reading

Did this doc help you?Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

O, learn how to contribute.