GitHub Workflow Integrations: Using GitHub for IntelliJ

The IntelliJ IDE from JetBrains has GitHub pull request support for any GitHub repo you have open. After you install IntelliJ, you can choose to clone a git project from the Start menu, as shown in Figure 13-23.

A pop-up window asks for a URL. At the bottom of this window, click the Sign in to GitHub button. You’re asked for your GitHub credentials. If you have two-factor authentication set up, you are also asked for your 2fa code. After you have suc­cessfully logged in, all the GitHub repositories that you have access to appear in the drop-down list, as shown in Figure 13-24.

After you choose a repository and click Clone, a series of pop-up windows prompt you to create the IntelliJ project. When the project is open in IntelliJ, you can open the GitHub pull request preview by choosing VCSGitView Pull Requests. A new section opens in the IntelliJ window with a list of the open pull requests. If you click one, the description and list of changed files opens. If you double­click one of the changed files, a diff of that file opens in a new window (see Figure 13-25).

Lastly, you can create a pull request from inside of IntelliJ as well. If you’re on a new branch and have already made some changes and committed them to your branch, you can choose VSC o Git o Create Pull Request. In the pop-up window, shown in Figure 13-26, specify the base and target branch, title, and description of your pull request.

This GitHub pull request feature is embedded in the IntelliJ IDE, so it’s best to fol­low the IntelliJ blog and documentation for up-to-date information on the devel­opment of this feature.

Source: Guthals Sarah, Haack Phil (2019), GitHub for Dummies, Wiley.

Leave a Reply

Your email address will not be published. Required fields are marked *