From 16db9197ad0b1263734398d8d586cf79d0b61b21 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 29 Jun 2022 11:04:01 -0700 Subject: [PATCH] modules/web_hook: Fix annotation association with push event (regression 1abc66dccc5). --- modules/web_hook.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/web_hook.cc b/modules/web_hook.cc index 0141e2dd4..b9ed71b86 100644 --- a/modules/web_hook.cc +++ b/modules/web_hook.cc @@ -292,11 +292,11 @@ github_handle(client &client, const fmt::bsprintf<512> alt_msg { - "%s by %s to %s", + "%s by %s to %s at %s", type, github_find_party(request.content).first, github_find_repo(request.content).first, - + github_find_commit_hash(request.content), }; const auto evid @@ -1442,7 +1442,7 @@ github_handle__status(std::ostream &out, content["body"] }; - return body == commit_hash; + return has(body, "push") && has(body, commit_hash); } };