From 52c2916984d9be057e8ae1becefaca9d8301711d Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Mon, 1 Aug 2022 01:18:36 +0200 Subject: integrations: add thank you message template to sourcehut Signed-off-by: Moritz Poldrack Acked-by: Robin Jarry --- integrations/sourcehut.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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]` -- cgit v1.2.3-54-g00ecf