liveBook · Manning

Pull request

As explained in Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform

A pull request is a repository collaboration request that proposes external changes for review and merging into another branch.

A pull request notifies repository maintainers that external changes are ready for review and possible merging into the main configuration. section 7.2.1

A feature-based workflow typically proceeds as follows:

  • Create a branch for a ticket or change, modify the configuration, commit locally, and push the branch to a remote repository. section 7.2.1
  • Open a pull request, add reviewers such as a change advisory board, and wait for approval. section 7.2.1
  • Merge approved changes into the main branch; update other working branches from main before subsequent reviews. section 7.2.1

Firewall configuration changes

One contributor pushes TICKET-002, containing firewall-rule changes, and opens a pull request. After approval, the changes enter main. A teammate merges main into TICKET-005 before submitting a separate license update, reducing divergence between branches. section 7.2.1

Figure 7.11 When you use feature-based development, you isolate your changes to your branch and reconcile conflicts with the main configuration.

Shows how feature branches isolate changes and reconcile them with the main configuration. section 7.2.1

How Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform covers it

How deep it goes
Explains creation, pushing, review, approval, merging, and branch synchronization, then defers automation to delivery pipelines.
Examples
Demonstrates firewall-rule and license updates across TICKET-002, TICKET-005, main, and a remote repository.
What it assumes
Assumes familiarity with repositories, branches, commits, remotes, and basic command-line Git operations.
What you can do after
Apply it via Git to push a branch, request review, merge approved changes, and synchronize another branch with main.
How it connects
Connects pull requests with feature-based development, branches, merging, code review, and delivery pipelines.

Also explained in

Compare how 6 books explain pull request →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform. The section links point to the parts of the book it draws on.