commit 41a40dfa8b16457c7c1ec0ca2ee71027925a5bdd
parent d936e68088b4022f97515e61c2a91ef888de3775
Author: MichaĆ M. Sapka <michal@sapka.me>
Date: Fri, 21 Jul 2023 15:03:27 +0200
feat: better notmuch tagging for GH
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/scripts/notmuch-tag.sh b/scripts/notmuch-tag.sh
@@ -12,9 +12,11 @@ for thread in $(notmuch search --sort=oldest-first --output=threads -- "\"reques
txt=$(notmuch show "$msg")
(echo "$txt" | grep "requested your review on") && notmuch tag +gh-pr-todo -- "$thread"
+ (echo "$txt" | grep "requested review from @zendesk/explore-vega") && notmuch tag +gh-pr-todo -- "$thread"
(echo "$txt" | grep "@michalsapka approved this pull request") && notmuch tag -gh-pr-todo -- "$thread"
(echo "$txt" | grep "@michalsapka requested changes on this pull request") && notmuch tag -gh-pr-todo -- "$thread"
(echo "$txt" | grep "Merged.*into") && notmuch tag -gh-pr-todo +gh-pr-done -- "$thread"
+ (echo "$txt" | grep "Closed #.*") && notmuch tag -gh-pr-todo +gh-pr-done -- "$thread"
done
done