Skip to content

How to use prompt hints? #155

Answered by kidroca
iwannabedev asked this question in Q&A
Mar 13, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hey, I've just tried it. There's a bit of a fine print at the bottom when you edit a prompt, saying

"Include a hint by using a dollar sign and prefix like this {Here is a hint: $hint}. This adds the hint text inside the curly brackets only if a hint is provided

So we have to use both curly braces and $, here's how I use it in my template:

...
{Author's notes: "$hint"}
...
{diff}

Then if I write something in the commit message box, like "code comments were outdated", it is injected as Author's notes: "code comments were outdated"

Some samples I've tried, so that I know it actually work - #18 (reply in thread) (Though with that particular template I find my notes are ignored 50% of the t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iwannabedev
Comment options

Answer selected by iwannabedev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants