0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-15 09:31:46 +02:00

modules/web_hook: Fix annotation association with push event (regression 1abc66dccc).

This commit is contained in:
Jason Volk 2022-06-29 11:04:01 -07:00
parent 5a4a395fc2
commit 16db9197ad

View file

@ -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);
}
};