Coderockr's Blog

Simplifying Project Setup on GitHub

2 min
Jan 10, 2017

At Coderockr, we manage several projects, whether for clients or internal initiatives, and GitHub is usually the tool of choice. Over the years, we’ve defined a structure for managing our issues using the following labels:

undefined

It’s a simple set that clearly defines the stages, priorities, types, and states of tasks, making it easy to track them. We apply these labels in all projects, but even if you're in a good mood, it’s a tedious and time-consuming task. And you’re likely to forget some, requiring a review to ensure they’re all in place.

Did I forget "Stage: Testing"? Found it...

To save time and reduce the monotony, we created a script to automate this process by adding labels to a specified project. Thanks to the simplicity of the GitHub API, the script ended up being simpler than expected, built entirely with cURL and some Bash loops for the labels.

We even made it so that you don’t need to download or install anything—just run a cURL command directly from the GitHub repository, and it will ask for the data it needs. We’ve decided to leave the script in a public GitHub repository for anyone looking for a similar solution (or anyone who now thinks it's worth creating one too). The script and usage instructions can be found here .

In conclusion, spending a little time understanding the tools you use not only saves time in the long run but also leads to useful scripts that can be shared.

We also created a new script to set up the same structure for GitLab projects, which you can view here .

Post author profile picture

Lucas Abreu

/ Back-end Developer /

In the field since 2009, when the goal was just to create something for fun. Graduated in Information Systems from UNIVILLE. Now lives to solve problems.

Transform with Coderockr

We are ready to help you make the most of technology and achieve exceptional results.

WhatsApp