cz-cli icon indicating copy to clipboard operation
cz-cli copied to clipboard

Add scope propositions from commit history

Open mfilotto opened this issue 9 years ago • 3 comments

Hi, Thanks for your nice tool, that's very handy. It would be awesome to have scope propostions from previous scopes from the commit history. Because it's hard to remember what we've previously used so it's error prone, as a restult we have scope duplicates.

mfilotto avatar May 09 '16 03:05 mfilotto

This is a good idea. It wouldn't be part of the cli though. It would be part of the adapter, e.g., the conventional changelog adapter.

You can also create your own adapter pretty easily. That's what I did. I just copied the code from conventional changelog and changed the scope section so that it uses a list, like the prompt section. I then saved the file to in my repo as cz-adapter.js and updated my package.json to show commitzen where to find it.

  "config": {
    "commitizen": {
      "path": "./cz-adapter"
    }
  },

pmcelhaney avatar Jul 24 '16 23:07 pmcelhaney

When the scope list is defined in the scope-enum rule, we could then have a selector like the type. (#720)

bertho-zero avatar Apr 02 '20 14:04 bertho-zero

I would really love to see this option in cz-cli.

or at least a working example / gist of an conventional changelog adapter as described above.

cheers,

lars

lgersman avatar Sep 25 '20 09:09 lgersman