clog-tool / clog-cli

Generate beautiful changelogs from your Git commit history
MIT License
851 stars 43 forks source link

Define custom sections into .clog.toml file #101

Open fedexin40 opened 7 years ago

fedexin40 commented 7 years ago

Hi guys @kbknapp I am stuck trying to setup the .clog.toml file to add some customs sections, I dont know what I am doing wrong.

The file looks like

[clog]
repository = "http://gitlab.openpyme.mx/tools/ea_import.git"
outfile = "CHANGELOG.md"
from-latest-tag = true

[sections]
Performance = ["perf", "impr", "im", "imp"]
"Bug Fixes" = ["fix"]
"Code refactor" = ["refactor"]
Feature = ["feat"]

First I placed the file in ~/.clog.toml and I used the instruction to create the file clog -c ~/.clog.toml -C ea_import/CHANGES.md -f 3dcdddf612d8b8ab91b1e6546e9e2c824b5c04d0 --setversion 1.1.0 After that I put the file into the same directory than my repository but the result is always the same, a file which contains only a header tag

Could you help or guide me please?

I am using clog v0.9.3

kbknapp commented 7 years ago

Try removing the from-latest-tag line. Does it still only show a header?

fedexin40 commented 7 years ago

Yes I have the same result, all work okay if I dont use a custom configuration.

fedexin40 commented 7 years ago

After a while looking around clog -c ~/.clog.toml -g . -C ea_import/CHANGES.md -f 3dcdddf612d8b8ab91b1e6546e9e2c824b5c04d0 --setversion 1.1.0

I needed to use --git-dir in somewhere