Managing pull requests in a collaborative project can be a bit frustrating. When facing a long list of PRs, usually developers ask themselves:
Unfortunately on GitHub, and other platforms, default labels are usually not the best or the right ones for your collaboration needs. So, we decided to document the solution that we use at Pixelmatters aiming a more efficient PRs management. You may not know it yet, but we're quite obsessed by the efficiency of our communication and processes.
We use the following three three different label categories. Each issue or pull request can only contain one label of each type:
It may seem like a small improvement, but when you have around +20 pull requests or so this system can really shine and make Product Owners and Developers' jobs a whole lot easier.
❗️ You must use the recommended colors so we can get used to those, improving readability.
Install git-labelmaker
globally
yarn global add git-labelmaker
OR
npm i -g git-labelmaker
Go into your git repository and run the following command
git-labelmaker
git-labelmaker
will ask you for a token, that you can get by (the example is for GitHub):
Clicking your profile picture
Settings
Developer settings
Personal access tokens
Generate a new token and make sure to provide repo permissions.
Then copy the token (which you can only see at this point) and paste it into the terminal.
If all went well, you'll be greeted with the following menu, where you have to pick Add Labels From Package. and point to pixelmatters-github-labels.json
file in this repository.
Inspired by the excellent article Sane GitHub Labels from @Dave Lunny.