Introduction
A pull request is a way for contributors to submit changes to a project maintained by others. The changes are proposed and then reviewed and potentially merged by the project maintainers. In this guide, we will walk you through the steps of making a pull request to the Open-Science-Community-Saudi-Arabia/MOOCs repository on GitHub.
Steps
-
Find a feature or bug that you want to work on.
-
Fork the Open-Science-Community-Saudi-Arabia/MOOCs repository to your GitHub account.
-
Clone the forked repository on your local machine.
git clone https://github.com/<your-github-username>/Open-Science-Community-Saudi-Arabia/MOOCs/
-
Sync the fork, to avoid merge conflicts.
git remote add upstream https://github.com/Open-Science-Community-Saudi-Arabia/MOOCs/ git fetch upstream git pull upstream main git push
-
Create a new branch with your GitHub username as its name.
git checkout -b <your-github-username>
It is not mandatory to name the new branch with your GitHub username, but it is a good practice to do so, as long as the name of the branch is clear and concise, you can name it whatever you want.
-
Make your changes on this new branch.
-
Commit your changes with a clear commit message.
git add . git commit -m "Clear and concise commit message"
-
Push your changes to your forked repository.
git push origin <your-github-username>
-
Go to the Open-Science-Community-Saudi-Arabia/MOOCs repository on GitHub, and you should see a message suggesting to create a new pull request. Click on it.
-
To raise the PR choose the PR template and fill it with the required information. The PR template is a set of questions that you need to answer to make it easier for the maintainers to review your pull request. you can find the PR template here
-
Add a clear and concise title and description for your pull request, explaining the changes you made.
-
Submit your pull request, and wait for the maintainers to review your changes.
Congratulations! You've just made a pull request to the Open-Science-Community-Saudi-Arabia/MOOCs repository.