summaryrefslogtreecommitdiff
path: root/integrations/sourcehut.md
blob: 854bdf6dcdc6efe520458f9b69f4a04f6dc681da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: "aerc-wiki: Integrations/SourceHut"
---

# Sourcehut Lists

This config entry allows setting
[headers](https://man.sr.ht/lists.sr.ht/#email-controls) to easily set the
status on patches.

```ini
[compose::review]
<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" \
    <Enter>
```

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