gh-labeler: Github Standard Labeler

[ bsd3, program, unclassified ] [ Propose Tags ]

Please see the README on Github at https://github.com/vincenthz/gh-labeler#readme


[Skip to Readme]
Versions [faq] 0.1.0
Dependencies base (<5), directory, github, memory, text, vector [details]
License BSD-3-Clause
Copyright 2018 Vincent Hanquez
Author Vincent Hanquez
Maintainer vincent@snarc.org
Revised Revision 1 made by HerbertValerioRiedel at Sun Feb 17 14:02:15 UTC 2019
Home page https://github.com/vincenthz/gh-labeler#readme
Bug tracker https://github.com/vincenthz/gh-labeler/issues
Source repo head: git clone https://github.com/vincenthz/gh-labeler
Uploaded by VincentHanquez at Tue Mar 13 09:39:28 UTC 2018
Distributions NixOS:0.1.0
Executables gh-labeler
Downloads 163 total (25 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
Last success reported on 2018-03-13 [all 3 reports]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees


Readme for gh-labeler-0.1.0

[back to package description]

gh-labeler

This is a simple CLI tool to create, delete and synchronise labels on a github repo.

Install

The simplest method is to install stack and then:

stack install gh-labeler

Usage

Create a github OAuth token with the public_repo priviledge (in repo section), and copy the token into a file in your HOME directory called .gh-labeler.

Then:

  • Listing labels:
gh-labeler vincenthz gh-labeler list
  • Create a label
gh-labeler vincenthz gh-labeler create myLabel eeb2d3
  • Delete a label
gh-labeler vincenthz gh-labeler delete myLabel
  • Synchronise from a file (See Example label file for the format):
gh-labeler vincenthz gh-labeler sync my-labels.txt

Caveats

  • The tools doesn't yet support label description, since the underlying library doesn't support them.

Example label file

Very simple syntax of <color> <name>:

Example:

b60205 B - Bug
0e8a16 D - easy
d93f0b D - hard
fbca04 D - medium
006b75 P - high
006b75 P - low
cccccc R - duplicate
cccccc R - invalid
cccccc R - wontfix
4ef47d X - WIP
fef2c0 X - code-structure
fef2c0 X - for-discussion
fef2c0 X - help wanted
fef2c0 X - question
fef2c0 X - voting