Pixelmatters / pixelmatters-github-labels

Enhance Github labelling system, in a Pixelmatters' way.
MIT License
1 stars 0 forks source link
github labels pixelmatters

GitHub Labels

Enhance Github labelling system, in a Pixelmatters' way.

eslint-config-pixelmatters is released under the MIT license. PRs welcome! Follow @pixelmatters_

Why use this

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.

How it works

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.

How to use it

  1. Install git-labelmaker globally

    yarn global add git-labelmaker
    
    OR
    
    npm i -g git-labelmaker
  2. Go into your git repository and run the following command

    git-labelmaker
  3. git-labelmaker will ask you for a token, that you can get by (the example is for GitHub):

    1. Clicking your profile picture

    2. Settings

    3. Developer settings

    4. Personal access tokens

    5. 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.

    6. 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.