项目作者: kuba--

项目描述 :
Github labels color/description updater
高级语言: Go
项目地址: git://github.com/kuba--/labels.git
创建时间: 2019-01-27T19:49:35Z
项目社区:https://github.com/kuba--/labels

开源协议:

下载


Github labels color/description updater

The tool lets you update label’s color and/or description for your repo.

  1. GO111MODULE=on go build .
  2. usage: ./labels <list | update> -r "<org/repo>" [options]
  3. update options:
  4. -f string
  5. JSON file with labels (default "default.json")
  6. -a bool
  7. Add a new label if doesn't exist (default false)
List
  1. GITHUB_TOKEN="my github token" ./labels list -r "<org/repo>"
  2. # response
  3. [
  4. {
  5. "name": "Please! ♥",
  6. "color": "d4c5f9",
  7. "description": "Particularly useful features that everyone would love!"
  8. },
  9. {
  10. "name": "bug",
  11. "color": "d73a4a"
  12. },
  13. ...
  14. ]
Update (add if doesn’t exist)
  1. GITHUB_TOKEN="my github token" ./labels update -r "<org/repo>" -f "mylabels.json" -a
  2. # response
  3. [invalid]: 200 OK
  4. [duplicate]: 200 OK
  5. [question]: 200 OK
  6. [help wanted]: 200 OK
  7. [wontfix]: 200 OK
  8. [enhancement]: 200 OK
  9. [bug]: 200 OK
  10. [good first issue]: 201 Created
  11. [meta]: 201 Created
  12. [under discussion]: 201 Created
  13. [change request]: 201 Created
  14. [has PR]: 201 Created
  15. [Please! ♥]: 201 Created
  16. [enterprise]: 201 Created
  17. [cleanup]: 201 Created
  18. [do not merge yet]: 201 Created
  19. [keyboard shortcuts]: 201 Created
  20. [needs readme update]: 201 Created