8 Committing your changes and pushing them to GitHub
Following are the steps to take in committing your changes in RStudio and pushing them to GitHub.
8.2 Getting changes saved and push to GitHub
8.2.1 Tick the box beside the file that has changed to stage the changes.
8.2.2 Write a commit message in the Commit message
dialog box. In the commit message, describe the changes that you made.
8.2.3 Click on the Commit
button.
8.2.4 Click on the Push
button.
8.3 Initiate a pull request
8.3.1 Click on the branches link from your repository
8.3.2 Click on the Make pull request link on the appropriate branch
8.3.3 Enter a title for your pull request
Make the titel as short but as informative as possible
8.3.4 Add further description about the pull request (optional) and then click on Create pull request button
If you think more information will help the reviewer navigate through the changes you have made, use the comment box to add more details. This comments box can interpret Markdown syntax so you can format your text accordingly.
On the right hand side of the pull request page, you can set a specific reviewer for your pull request (recommended). Also, given that you are making this pull request, assign this pull request to you so you are notified of the progress of this pull request.
Then finally click on the Create pull request button
8.3.5 Wait for review
If the project has automated checks included, you will see that these checks will get initiated.
If there are no issues with the code, the automated checks should show that all checks have passed.
Wait for reviewer’s feedback/comments. If reviewer request’s changes, make changes to your code and then commit and push again (as above). If your project has automated checks, this will get triggered again within the same pull request. Your reviewer will be notified of the changes you have made and should review your work again. Once reviewer approves changes, you can then merge your work to the main branch.