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!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay