Get Template Version in Templates? #2161
-
I can't find the answer here beyond vcs_ref is only populated if the user passes it in at the command line, and the hash would require me to use a script to go back to git to get the name of the tag... Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I think we could expose the resolved VCS ref instead of the optionally passed value of |
Beta Was this translation helpful? Give feedback.
Digging through the source, turns out there's an undocumented property
_commit
that's available in the questions template and can easily be made the default for an answer variable like so, while handling for dirty commits: