summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2022-08-01 01:18:36 +0200
committerRobin Jarry <robin@jarry.cc>2022-08-01 09:42:02 +0200
commit52c2916984d9be057e8ae1becefaca9d8301711d (patch)
tree25dc437f25c76d434fac7d2e5b892795f8072640
parent5f9a8e2bec9261b4e0f142f00b345bdf489c282b (diff)
downloadaerc-52c2916984d9be057e8ae1becefaca9d8301711d.tar.gz
aerc-52c2916984d9be057e8ae1becefaca9d8301711d.zip
integrations: add thank you message template to sourcehut
Signed-off-by: Moritz Poldrack <git@moritz.sh> Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r--integrations/sourcehut.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/integrations/sourcehut.md b/integrations/sourcehut.md
index ca674773..854bdf6d 100644
--- a/integrations/sourcehut.md
+++ b/integrations/sourcehut.md
@@ -20,3 +20,21 @@ status on patches.
```
To set a status hit Ctrl+R(eview) before sending the message.
+
+# Thank-you Messages
+
+> This section is under a CC-BY-SA License [Thanks to Drew
+> DeVault](https://drewdevault.com/2022/07/25/Code-review-with-aerc.html)
+
+Using this template thank-you messages to contributors can be pre-populated
+with relevant information about the last push.
+
+```
+X-Sourcehut-Patchset-Update: APPLIED
+
+Thanks!
+
+{{exec "{ git remote get-url --push origin; git reflog -2 origin/master --pretty=format:%h | xargs printf '%s\n' | tac; } | xargs printf 'To %s\n %s..%s master -> master'" ""}}
+```
+
+This template can be used by executing: `:reply -a -T[template-name]`