DEV Community

Add00
Add00

Posted on

Getting my Git PR

Getting your PR approved is a big deal. This week to achieve this goal we learned about the details of git. I had the opportunity to practise this process with my friends repo the very cool f2read project.

The first step in creating a PR is to fork the repository. Forking creates a copy of the project that can be operated without affecting the original project.

The second step is to find a feature to add or fix. In this case I opted to add a new flag to the CLI tool which showed the token usage statistics.

To do this I used the OpenAI library to access this information and the JS console.error to display it in a proper format.

Once the changes are complete I committed it and pushed it to a new branch on my fork. Then I made the Pull Request to the original repo. My friend then reviewed the request and provided some good feedback. Which I added and the code was then approved!

All in all I quite enjoyed this experience and I look forward to making more PRs!

Top comments (0)