Skip to content

zaufi/github-labels

Repository files navigation

What is this

The utility to mass-setting labels to Github projects. This is the prove-of-concept quality code ;-) I.e., not even alpha :)

Usage

Usage: github-labels [OPTIONS] INPUT_FILE

  Mass-setting labels to Github repositories

Options:
  --config FILE           File name of the user config.  [default:
                          /home/zaufi/.config/github-labels.conf]
  -r, --dry-run           Do not perform real actions.
  -v, --verbose           Be a little bit verbose.
  -s, --only-show-labels  Only show configured labels. Do not do any network
                          operations.
  -h, --help              Show this message and exit.

The program accepts a YAML file with a list of labels and repositories to apply. Basically it looks like this:

repositories:
    - 'owner/repo-1'
    - 'owner/repo-2'
    - ...

labels:
    - name: bug
      color: 'aa0000'
      description: 'A bug-fixing patch'
    - name: feature
      color: '00aa00'
      description: 'Introducing a new feature'
    - ...

User config contains credentials to access Github:

credentials:
    user: '<your-user>'
    password: '<your-pass>'

Screenshots

Dry run

Caveats

  • It always use ANSI colors for True Color terminals, so if your terminal is not TrueColor... OOPS
  • Error handling needs some care. You can see a Python backtrace sometimes :-)

TODOs

  • Tests?

About

Mass-setting labels to Github projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages