First Github Pull Request

Since I partnered up with 2 people for lab 1, I have decided to do this with the same people again for this lab. I spent a good amount of time to read and tried to understand the logic and purpose of code before I began updating the project.

As I read the lab instructions, I realized that the goal is to add an extra feature to other's project, this is amazing because we get to make real contributions to other's work. It was easy for me to decide what to add onto my partner's codes because I knew a crucial part that his release 0.1 lacks, which is the timeout settings and error catching when making requests to the URLs. In his project, the Axios module was used to make those requests, I did a little bit of research and found out that the default timeout for an Axios request is 0, therefore, some links may keep the program waiting for a long period of time, which may cause the program to freeze, therefore I added in the timeout setting in the request to make the tool display ETIMEOUT errors for those links, while I was at it, I also changed the catch block to display any other errors after receiving the response from servers.

My other partner reviewed my code and added a very useful feature to my project, that is allowing the user to pass in multiple files in one command to have the tool to check all of those files and he was nice enough to update the README file as well.

Throughout the process of this lab, the three of us have used slack to communicate with each other when running into problems, such as asking the purpose of certain code block and asking how to run other's program locally instead of installing their npm package, this is required to test the updates. Before making the PR, I have shown the add-on code to my partner to make sure that we both agree on the changes in case if I made any mistakes. I have learned a couple of new things from this lab, such as making a PR, understood some git commands and enhanced my collaboration skills.

URLS:


Comments

Popular posts from this blog

Working on the Telescope Project

Hacktoberfest -1

Using Code Formatter and Linter