* The cover image is originally by Free-Photos and edited with great appreciation.
Projects usually have the official contribution guides. Read them to follow their rules. Here is Deno's.
Contributors are sometimes required to accept something. Deno requires "Contributor License Agreement" via CLA assistant.
Fork a copy of the repository in a web browser. Just click "Fork".
Now you have a copy of the repo as yours.
$ git clone <your/repository>
Create a branch which contains only your changes and is bound to a pull request later.
The branch name should be unique and easy to understand what it is for. If there is an open issue related, the branch name may include its ID.
$ git checkout -b <branch-name>
Edit files as needed with editors or IDEs.
Confirm there are only changes which you are intended to make.
Commit the changesets.
$ git add . $ git commit -m "<comments should be short and describe summary>"
$ git push origin <branch-name>
Open the own repository in a web browser and choose the pushed branch. You will see the green button "Open pull request". Click it.
Here is the final stage to submit the pull request to the original project. Read the comments, which are provided by the project, carefully, write your description and review the validity by yourself. Check "Files changed" again. Then publish it.
Done. It will be reviewed by the project. Wait with patience.
After the submission above, my reviewer replied to me and I followed his advice. I did
git commit and
git push origin <branch-name> again. Then I opened my Github repo page in a web browser and clicked "Fetch upstrean" -> "Fetch merge" to reflect the new commit in the pull request. It was accepted by the reviewer.
After all, my pull request passed all the checks and has been "merged" to the "main" branch in the project 🙂