Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
3.5 KiB
title, intro, redirect_from, permissions, versions, topics, shortTitle
| title | intro | redirect_from | permissions | versions | topics | shortTitle | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 in your personal account. |
|
People with push access to the upstream repository of a fork in a personal account can commit to the forked branches. |
|
|
Allow changes to a branch |
When a user creates a pull request from their fork, the user generally has the authority to decide if other users can commit to the pull request's compare branch. If the pull request author wants greater collaboration, they can grant maintainers of the upstream repository (that is, anyone with push access to the upstream repository) permission to commit to the pull request's compare branch. To learn more about upstream repositories, see AUTOTITLE.
Pull request authors can give these permissions when they initially create a pull request from a fork in a personal account or after they create the pull request. For more information, see AUTOTITLE.
You can set commit permissions when you first create a pull request from a fork. For more information, see AUTOTITLE. 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
-
On {% data variables.product.product_name %}, navigate to the main page of the upstream repository of your pull request.
-
Under the upstream repository name, click {% octicon "git-pull-request" aria-hidden="true" %} Pull requests. {% ifversion global-nav-update %}
{% else %}
{% endif %}
-
In the list of pull requests, navigate to the pull request that you'd like to allow commits on. {% data reusables.repositories.allow-maintainers-user-forks %}


