summaryrefslogtreecommitdiff
path: root/thanks-pr-template.example
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-04-17 15:03:40 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-04-17 15:03:40 -0400
commitd77b3df240768c6d2ede4b99dbe09fb661327ff8 (patch)
tree504ab37ebeedf767af5cc544a8da9410514a67e5 /thanks-pr-template.example
parentd6d552386ad2fc7b215a4a4e9860144975a3240f (diff)
downloadb4-d77b3df240768c6d2ede4b99dbe09fb661327ff8.tar.gz
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 <broonie@kernel.org> Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'thanks-pr-template.example')
-rw-r--r--thanks-pr-template.example14
1 files changed, 13 insertions, 1 deletions
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