left-icon

GitHub Succinctly®
by Joseph D. Booth

Previous
Chapter

of
A
A
A

CHAPTER 12

Pull Request

Pull Request


At some point during the collaboration, a contributor is likely to have completed and tested the code well enough that she feels the code could be added to the main branch. Genevieve decides to create the pull request by click on the Pull request button.

Pull request

Figure 83: Pull request

Creating the request

Genevieve submits the request and adds a description of the work she has done.

Pull request details

Figure 84: Pull request details

The repository owner will now see the pull request when he opens the repository. The owner would have also received an email that a pull request has been made.

Reviewing the request

The owner sees the request when he opens the repository.

Pull request view

Figure 85: Pull request view

By clicking on the pull request itself, the details of the request are displayed.

Figure 86: Pull request details

The owner can now look at the commits and actual file changes to decide whether or not to merge the code. After reviewing the changes and accepting them, the owner clicks on the Merge pull request button. GitHub will ask for a confirmation, and once the confirmation is made, will perform the merge.

Successful merge

When the merge is successful, GitHub will report it and update the repository:

Successful pull request

Figure 87: Successful pull request

Since the pull request is complete, it will now appear as a closed pull request when the repository is being viewed.

Summary

Once the collaborator completes the requests, and they request that the code be merged back in, the owner can review the changes and accept them (perform the merger), or perhaps ask the collaborator questions, or identify additional work that needs to be done before accepting the changes. GitHub provides all the tools and comparisons that the owner needs to make a decision to include the new code.

Scroll To Top
Disclaimer
DISCLAIMER: Web reader is currently in beta. Please report any issues through our support system. PDF and Kindle format files are also available for download.

Previous

Next



You are one step away from downloading ebooks from the Succinctly® series premier collection!
A confirmation has been sent to your email address. Please check and confirm your email subscription to complete the download.