|
|
|
|
|
by Gazler
4231 days ago
|
|
Hi, thanks for the feedback, it would be great to be used by a project like Foreman! Currently the string for the format only allows the 3 defined variables, type, scope and description. I have been using this style at https://github.com/Gazler/changex/commits/master to give you an idea of how it works. I was concerned that the format string might be a little weird to get from the help. I will try and clear this up a bit. I have attempted to build the string that you requested, currently an or separator is not supported, but I can take a look at adding it in. Here are the format strings that I think match your use case. Using a colon as a separator: test string: "Fixes #1234: foo"
format: "%{type} #%{scope}: %{description}"
[type: "Fixes", scope: "1234", description: "foo"]
Using a hyphen as a separator: test string: "Fixes #1234 - foo"
format: "%{type} #%{scope} - %{description}"
[type: "Fixes", scope: "1234", description: "foo"]
I hope this makes sense, let me know if you get it working! |
|
Still, what does %{scope} actually catch? Anything that's not %{type}, %{description} or an explicit character?