ref: 52c2916984d9be057e8ae1becefaca9d8301711d aerc/integrations/sourcehut.md -rw-r--r-- 1.2 KiB
52c29169 — Moritz Poldrack integrations: add thank you message template to sourcehut a month ago

#title: "aerc-wiki: Integrations/SourceHut"

#Sourcehut Lists

This config entry allows setting headers to easily set the status on patches.

<C-r> = :choose \
    -o a approved "header X-Sourcehut-Patchset-Update APPROVED" \
    -o R Rejected "header X-Sourcehut-Patchset-Update REJECTED" \
    -o r needs-revision "header X-Sourcehut-Patchset-Update NEEDS_REVISION" \
    -o s superseded "header X-Sourcehut-Patchset-Update SUPERSEDED" \
    -o A Applied "header X-Sourcehut-Patchset-Update APPLIED" \

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

Using this template thank-you messages to contributors can be pre-populated with relevant information about the last push.

X-Sourcehut-Patchset-Update: APPLIED


{{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]