How to Create a Pull Request (PR) for Open-Source Projects
-
Fork the Repository
Click the “Fork” button on the project’s GitHub page to create your own copy under your GitHub account. -
Clone Your Fork Locally
-
Add the Original Repo as Upstream
-
Create a New Branch for Your Changes
-
Make Your Changes
Edit code, add tests, update docs—whatever the issue or feature requires. -
Commit with a Clear Message
-
Push to Your Fork
-
Open the Pull Request
- Go to your fork on GitHub.
- Click “Compare & pull request”.
- Fill in the template: describe what you changed and why, reference any open issues (e.g., “Closes #123”).
- Ensure CI checks pass; address review feedback promptly.
-
Celebrate & Iterate
Once maintainers merge your PR, your contribution becomes part of the project—congrats!