{"meta":{"title":"Creating a pull request from a fork","intro":"Create a pull request from a fork to propose changes to an upstream repository and collaborate on code effectively.","product":"Pull requests","breadcrumbs":[{"href":"/en/pull-requests","title":"Pull requests"},{"href":"/en/pull-requests/how-tos","title":"How-tos"},{"href":"/en/pull-requests/how-tos/create-pull-requests","title":"Create pull requests"},{"href":"/en/pull-requests/how-tos/create-pull-requests/creating-a-pull-request-from-a-fork","title":"Create a PR from a fork"}],"documentType":"article"},"body":"# Creating a pull request from a fork\n\nCreate a pull request from a fork to propose changes to an upstream repository and collaborate on code effectively.\n\nBefore creating a pull request from a fork, fork the upstream repository and push your changes to a branch in your fork. See [Fork a repository](/en/pull-requests/how-tos/work-with-forks/fork-a-repo).\n\nIn a pull request from a fork, the base branch is where you want to merge your changes, and the compare branch is the branch in your fork that contains your changes. See [Creating a pull request](/en/pull-requests/how-tos/create-pull-requests/creating-a-pull-request#creating-the-pull-request).\n\n> \\[!NOTE]\n> To open a pull request in a public repository, you must have write access to the head or the source branch or, for organization-owned repositories, you must be a member of the organization that owns the repository to open a pull request.\n\n1. Navigate to the original repository where you created your fork.\n\n2. Above the list of files, in the yellow banner, click **Compare & pull request** to create a pull request for the associated branch.\n\n   ![Screenshot of the banner above the list of files.](/assets/images/help/pull_requests/pull-request-compare-pull-request.png)\n\n3. On the page to create a new pull request, click **compare across forks**.\n\n   ![Screenshot of the page to open a pull request. The \"compare across forks\" link is outlined in dark orange.](/assets/images/help/pull_requests/compare-across-forks-link.png)\n\n4. In the \"base branch\" dropdown menu, select the branch of the upstream repository where you want to merge changes.\n\n   ![Screenshot of the page to open a new pull request. The dropdown menus for choosing the base repository and branch are outlined in dark orange.](/assets/images/help/pull_requests/choose-base-fork-and-branch.png)\n\n5. In the \"head fork\" dropdown menu, select your fork. Then, use the \"compare branch\" dropdown menu to select the branch where you made your changes.\n\n   ![Screenshot of the page to open a new pull request. The dropdown menus for choosing the head repository and compare branch are outlined in dark orange.](/assets/images/help/pull_requests/choose-head-fork-compare-branch.png)\n\n6. Type a title and description for your pull request.\n\n7. On user-owned forks, if you want to allow anyone with push access to the upstream repository to make changes to your pull request, select **Allow edits from maintainers**.\n\n   > \\[!WARNING]\n   > If your fork contains GitHub Actions workflows, the option is **Allow edits and access to secrets by maintainers**. Allowing edits on a fork's branch that contains GitHub Actions workflows also allows a maintainer to edit the forked repository's workflows, which can potentially reveal values of secrets and grant access to other branches.\n\n8. To create a pull request that is ready for review, click **Create Pull Request**.\n   To create a draft pull request, use the drop-down and select **Create Draft Pull Request**, then click **Draft Pull Request**. If you are the member of an organization, you may need to request access to draft pull requests from an organization owner. See [Pull requests](/en/pull-requests/reference/pull-requests#draft-pull-requests).\n\n> \\[!TIP]\n> After you create a pull request, you can ask a specific person to review your proposed changes. See [Requesting a pull request review](/en/pull-requests/how-tos/create-pull-requests/requesting-a-pull-request-review).\n\n## Further reading\n\n* [Work with forks](/en/pull-requests/how-tos/work-with-forks)\n* [Allowing changes to a pull request branch created from a fork](/en/pull-requests/how-tos/work-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork)"}