DORKAG Help

Work with Pull Requests

Pull requests are used in open-source projects or in some corporate workflows to manage changes from contributors and to initiate code review before such changes are merged.

By creating a pull request, you tell others about the changes you want to push to the original repository, so that the maintainers of that repository can review your changes, discuss them, and integrate them into the base branch.

Create a Pull Request

  1. In the main menu, go to Git | Azure DevOps | Create Pull Request. The Pull Requests tool window opens with a pull request draft.

    create_pr_draft

    Alternatively, open the Pull Requests tool window and click add Create Pull Request in the top-right corner.

    In the New Pull Request Tab, the repository on the left is the target repository that will receive the updates. The repository on the right is the source repository with the changes that will be added to the target repository.

  2. Click the name of the target repository on the left. In the popup that opens, specify the branch to which you want to apply your changes.

    click_target_name_pr_create

  3. Click the name of the source repository on the right. In the popup that opens, specify the branch that contains the changes you want to apply.

    click_source_name_pr_create

    If you have a project that uses multiple remote repositories, you can change the head repository in this popup as well.

  4. Specify the name for your pull request in the Title field, and, optionally, provide a description of the changes to be applied through your request.

  5. Optionally, add reviewers, assign your pull request to someone or add a label to your pull request.

  6. Click Create Pull Request.

    If you are not yet ready to push your pull request, you can save it as a draft.

    • Click on down next to the Create Pull Request button.

    • In the menu that opens, select Create Draft Pull Request

Manage incoming pull requests

If you're a project maintainer, and you have an Azure DevOps remote configured for your project, you can view and manage incoming pull requests directly from Jetbrains' IDEA.

To view incoming pull requests, select Git | Azure DevOps | View Pull Requests from the main menu.

manage_pr_list

Use the Azure DevOps PullRequest tool window to:

  • Filter requests by state, author, reviewer, source branch and target branch.

  • Jump to a pull request on Azure DevOps: select a pull request and choose Open on Azure DevOps from the context menu.

  • View diff between the suggested changes and the base revision: click the name of a pull request, select a file and double-click it or press ⌘Cmd D.

  • Create a local branch based on incoming changes: open a pull request, click the branch with incoming changes and choose Checkout 'branch name'… in the context menu.

    create_local_branch_based_on_source
Last modified: 19 November 2024