From 820b86cf9acdf522ae5d3b55941ac07b893e60a2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 25 Jul 2022 12:16:04 +0000 Subject: [PATCH] Handle Closes commit trailers References: https://git.sr.ht/~sircmpwn/todo.sr.ht/commit/c4bfcd1ff703eefed820a5ebeff5ad9ecd44b046 --- hubsrht/blueprints/webhooks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hubsrht/blueprints/webhooks.py b/hubsrht/blueprints/webhooks.py index f245106..29d5662 100644 --- a/hubsrht/blueprints/webhooks.py +++ b/hubsrht/blueprints/webhooks.py @@ -131,7 +131,9 @@ def _handle_commit_trailer(trailer, value, pusher, repo, commit): if not _todosrht: return - if trailer == "Fixes": + if trailer == "Closes": + resolution = "closed" + elif trailer == "Fixes": resolution = "fixed" elif trailer == "Implements": resolution = "implemented"