1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Files
docs/content/codespaces/developing-in-codespaces/using-github-codespaces-for-pull-requests.md
hubwriter dfab0d1601 Changes from JetBrains PR
These are the changes in the pre-review version of PR:
https://github.com/github/docs-internal/pull/29794

This version of the Codespaces docs forms the base for
the Universe megabranch.
2022-10-06 12:48:44 +01:00

4.4 KiB
Raw Blame History

title, shortTitle, intro, product, versions, type, topics, redirect_from
title shortTitle intro product versions type topics redirect_from
Using GitHub Codespaces for pull requests Pull requests You can use {% data variables.product.prodname_github_codespaces %} in your web browser, or in {% data variables.product.prodname_vscode %} to create pull requests, review pull requests, and address review comments. {% data reusables.gated-features.codespaces %}
fpt ghec
* *
how_to
Codespaces
Visual Studio Code
Developer
/codespaces/developing-in-codespaces/using-codespaces-for-pull-requests

About pull requests in {% data variables.product.prodname_github_codespaces %}

{% data variables.product.prodname_github_codespaces %} provides you with many of the capabilities you might need to work with pull requests:

  • Create a pull request - Using either the Terminal and Git commands or the Source Control view, you can create pull requests just as you would on {% data variables.product.prodname_dotcom_the_website %}. If the repository uses a pull request template, you'll be able to use this within the Source Control view.
  • Open a pull request You can open an existing pull request in a codespace, provided you have codespace access to the branch that is being merged in.
  • Review a pull request - Once you have opened a pull request in a codespace, you can use the "GitHub Pull Request" view to add review comments and approve pull requests. You can also use {% data variables.product.prodname_github_codespaces %} to view review comments.

Opening a pull request in {% data variables.product.prodname_codespaces %}

{% data reusables.repositories.sidebar-pr %}

  1. In the list of pull requests, click the pull request you'd like to open in {% data variables.product.prodname_codespaces %}.

  2. On the right-hand side of your screen, click {% octicon "code" aria-label="The code icon" %} Code.

  3. In the {% data variables.product.prodname_codespaces %} tab, click Create codespace on BRANCH.

    Option to open PR in a codespace

    A codespace is created for the pull request branch and is opened in your default editor for {% data variables.product.prodname_github_codespaces %}.

Reviewing a pull request in {% data variables.product.prodname_codespaces %}

  1. With your default editor set to either {% data variables.product.prodname_vscode %} or {% data variables.product.prodname_vscode %} for Web, open the pull request in a codespace, as described in "Opening a pull request" above.
  2. In the Activity Bar, click the GitHub Pull Request view. This view only appears when you open a pull request in a codespace. Option to open PR in a codespace
  3. To review a specific file, click the Open File icon in the Side Bar. Option to open PR in a codespace
  4. To add review comments, click the + icon next to the line number. Type your review comment and then click Start Review. Option to open PR in a codespace
  5. When you are finished adding review comments, from the Side Bar you can choose to either submit the comments, approve the changes, or request changes. Option to open PR in a codespace

For more information on reviewing a pull request, see "Reviewing proposed changes in a pull request."

View comments from a review in {% data variables.product.prodname_codespaces %}

Once you have received feedback on a pull request, you can open it in a codespace in your web browser, or in {% data variables.product.prodname_vscode_shortname %}, to see the review comments. From there you can respond to comments, add reactions, or dismiss the review.

Option to open PR in a codespace