|
|
|
|
|
by eLobato
4231 days ago
|
|
This is quite cool, and actually something I'll propose to use at some http://github.com/theforeman repos. I didn't really understood the format rules, so if the author posted this, a help section would help. I try to enforce '%(type) #xxxx(: | -) %{description}'
How would you do that? #xxxx is just an issue number, so it can be #23891, and after that I want a separator from the description, semi colon or hyphen are fine. Probably %{scope} can be used but I didn't really understand it from the inline help, sorry! |
|
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:
Using a hyphen as a separator: I hope this makes sense, let me know if you get it working!