Skip to content

Read labels from json file #109

@thomasgalliker

Description

@thomasgalliker

Thanks for this tool! Well appreciated community effort!

Idea
Just one idea that came across my mind: It would be wonderful if I could provide a labels.json file which contains the absolute list of labels (incl. name, description and color) to be applied for all selected repositories.

API Changes
It would need another parameter --source (or similar) which takes the path to the json file.

Sample file

[
  {
    "name": "bug",
    "color": "d73a4a",
    "description": "Something isn't working"
  },
  {
    "name": "enhancement",
    "color": "a2eeef",
    "description": "New feature or request"
  },
  {
    "name": "platform/android",
    "color": "1d76db",
    "description": "Related to Android platform"
  },
  {
    "name": "platform/ios",
    "color": "5319e7",
    "description": "Related to iOS platform"
  },
  {
    "name": "refactoring",
    "color": "8b80ba",
    "description": "Code refactoring task"
  },
  {
    "name": "s/needs-info",
    "color": "fef2c0",
    "description": "Issue needs more info from the author"
  },
  {
    "name": "question",
    "color": "d876e3",
    "description": "Further information is requested"
  },
  {
    "name": "help wanted",
    "color": "008672",
    "description": "Extra attention is needed"
  },
  {
    "name": "wontfix",
    "color": "ffffff",
    "description": "This will not be worked on"
  },
  {
    "name": "duplicate",
    "color": "cccccc",
    "description": "This issue or PR already exists"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions