Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 3.52 KB

allowing-changes-to-a-pull-request-branch-created-from-a-fork.md

File metadata and controls

44 lines (33 loc) · 3.52 KB
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 owned by your personal account.
/github/collaborating-with-issues-and-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork
/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork
/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork
/github/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork
People with push access to the upstream repository of a fork owned by a personal account can commit to the forked branches.
fpt ghes ghec
*
*
*
Pull requests
Allow changes to a branch

When a user creates a pull request from a fork that they own, 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 user-owned fork 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

  1. On {% data variables.product.product_name %}, navigate to the main page of the upstream repository of your pull request.

  2. Under the upstream repository name, click {% octicon "git-pull-request" aria-hidden="true" %} Pull requests. {% ifversion global-nav-update %}

    Screenshot of the main page of a repository. In the horizontal navigation bar, a tab, labeled "Pull requests," is outlined in dark orange.

{% else %}

Screenshot of the main page of a repository. In the horizontal navigation bar, a tab, labeled "Pull requests," is outlined in dark orange.

{% endif %}

  1. 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 %}

    Screenshot of a pull request. On the right bottom side, a blue, enabled checkbox, labeled "Allow edits and access to secrets by maintainers", is highlighted with an orange outline.

Further reading