Development (General)

What is a pull request and how does it work?

What a pull request is and how it works, from branch and push to review and merge, and why small PRs get real reviews while huge ones get a rubber-stamped LGTM.

  • 6 min read
  • 5 questions
  • +35 XP
Transcript

Pull Requests, explained by cats. Kitty has an idea. A better tuna button. She doesn’t touch the main branch. Too risky. So she makes her own branch. Kitty Codes. Commits. Pushes. Then she opens a Pull Request. Which means, kitty asks other cats to Pull her changes into the main branch.

Review cats arrive. Serious. Curious. They open the PR. ‘326 files changed.’ One reviewer runs. Another freezes. A third shrugs… types Looks good to me. and hits approve without reading anything... Kitty clicks merge. Tuna button upgraded. That’s a Pull Request: A process where other kitties review the code, before affecting all kitties.