muandane / goji

Commitizen-like Emoji Commit Tool written in Go (think cz-emoji and other commitizen adapters but in go) πŸš€

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐞 Bug Report: goji --init provides an unexpected configuration file

VictorRos opened this issue Β· comments

🐞 Describe the bug

Installed version 0.0.1-rc2

  • Run goji --init
  • Content file is different from here
    • Properties are in lowercase
    • entity is not in documentation
    • Missing "Types"
    • Object not sorted

The generated file:

{
  "Types": [
    {
      "emoji": "✨",
      "entity": "",
      "code": ":sparkles:",
      "description": "Introduce new features.",
      "name": "feature"
    },
    {
      "emoji": "πŸ›",
      "entity": "",
      "code": ":bug:",
      "description": "Fix a bug.",
      "name": "fix"
    },
    {
      "emoji": "πŸ“š",
      "entity": "",
      "code": ":books:",
      "description": "Documentation change.",
      "name": "docs"
    },
    {
      "emoji": "🎨",
      "entity": "",
      "code": ":art:",
      "description": "Improve structure/format of the code.",
      "name": "refactor"
    },
    {
      "emoji": "⚑️",
      "entity": "",
      "code": ":zap:",
      "description": "Improve performance.",
      "name": "perf"
    },
    {
      "emoji": "πŸš‘οΈ",
      "entity": "",
      "code": ":ambulance:",
      "description": "Critical hotfix.",
      "name": "hotfix"
    },
    {
      "emoji": "🚧",
      "entity": "",
      "code": ":construction:",
      "description": "Work in progress.",
      "name": "wip"
    },
    {
      "emoji": "πŸ“¦",
      "entity": "",
      "code": ":package:",
      "description": "Add or update compiled files or packages.",
      "name": "package"
    }
  ],
  "Scopes": [
    "home",
    "accounts",
    "ci"
  ],
  "Symbol": true,
  "SkipQuestions": [],
  "SubjectMaxLength": 50
}

πŸ“– Expected behavior

  • Running goji --init should generate this .goji.json
  • Properties are sorted on property Name in an ascending order

πŸŒ… Screenshots

N/A

πŸ’» Desktop

MacOS 13.3 (22E252)

my intention for the --init was to generate a more compact version of the example .goji.json and the users will customize their config file with gitmoji.

Still i'll update to be as extensive as the example in .goji.json

fixes will be added to v0.0.1-rc3

Ok thank you, nice reactivity ;)