From d77b3df240768c6d2ede4b99dbe09fb661327ff8 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Fri, 17 Apr 2020 15:03:40 -0400 Subject: Expand templates with ${branch} and ${treename} You can use ${branch} and ${treename} (if you set b4.thanks-treename). See .example files on some hints on how to use them. Suggested-by: Mark Brown Signed-off-by: Konstantin Ryabitsev --- thanks-pr-template.example | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'thanks-pr-template.example') diff --git a/thanks-pr-template.example b/thanks-pr-template.example index 4994b29..bb146f5 100644 --- a/thanks-pr-template.example +++ b/thanks-pr-template.example @@ -9,7 +9,19 @@ On ${sentdate}, ${fromname} wrote: # quote will be limited to 5-6 lines, respecting paragraphs ${quote} -Merged, thanks! +# You can also use ${branch} and ${treename} if you set +# b4.thanks-treename in your config, e.g.: +#Merged into ${treename} (${branch}), thanks! +# +# If you track multiple remotes in the same repo, then you can add +# the following values to [remote], to be loaded when you run +# b4 ty -b foo/branchname: +# [remote "foo"] +# url = https://... +# fetch = ... +# b4-treename = uname/sound.git +# b4-commit-url-mask = https://git.kernel.org/uname/sound/c/%.8s +Merged into ${branch}, thanks! # for pull requests, the summary is a one-liner with the merge commit, # so you probably want to set b4.thanks-commit-url-mask in gitconfig -- cgit v1.2.3