Git & GitHub
/Beginner
Creating a Pull Request
Definition
The process of opening a PR on GitHub, which involves selecting a base branch, a compare branch, writing a descriptive title, and providing context in the description body.
Explain Like I'm New
When you push a new branch to GitHub, a big green button automatically appears saying 'Compare & pull request'. Clicking it opens a form where you write a title and a description (using Markdown) to explain to your team what your code does.
Real World Example
Writing a great PR description: 'This PR fixes Issue #42. I added a debounce function to the search bar so it stops crashing the database when users type too fast. Attached is a screenshot of the new UI.'
Common Use Cases
- •Initiating a code review
Interactive Example
Interview Questions
basic
- What is the 'Base' branch in a Pull Request?
intermediate
- How do you automatically close an Issue when a PR is merged?