Home / Companies / Gatsby / Blog / Post Details
Content Deep Dive

Incremental PRs: a new GitHub workflow for the Gatsby Cloud team

Blog post from Gatsby

Post Details
Company
Date Published
Author
Josh Comeau
Word Count
2,415
Language
English
Hacker News Points
-
Summary

The Gatsby Cloud team implemented a new GitHub workflow to address the challenges posed by large, complex pull requests (PRs) that often stall due to their size and complexity, making them difficult to review. The proposed incremental PR workflow involves creating a root branch for a feature and developing smaller, incremental branches that build upon each other, allowing developers to solicit feedback early and integrate it into subsequent work without being blocked. This method, which relies heavily on rebasing to manage changes and conflicts, offers a more flexible and manageable approach to handling large changes by breaking them into smaller, reviewable units. While this workflow involves some branch management and requires force-pushing due to history rewriting, it has proven beneficial for the team by enhancing productivity and facilitating easier code reviews. Despite its drawbacks, such as the complexity of managing multiple branches and the need for force-pushes, the workflow offers significant benefits, particularly for changes too large for a single PR, and can be supplemented with feature flags for further flexibility.