mirror of
https://github.com/matrix-construct/construct
synced 2024-05-29 08:13:46 +02:00
modules/web_hook: Fix annotation association with push event (regression 1abc66dccc
).
This commit is contained in:
parent
5a4a395fc2
commit
16db9197ad
|
@ -292,11 +292,11 @@ github_handle(client &client,
|
||||||
|
|
||||||
const fmt::bsprintf<512> alt_msg
|
const fmt::bsprintf<512> alt_msg
|
||||||
{
|
{
|
||||||
"%s by %s to %s",
|
"%s by %s to %s at %s",
|
||||||
type,
|
type,
|
||||||
github_find_party(request.content).first,
|
github_find_party(request.content).first,
|
||||||
github_find_repo(request.content).first,
|
github_find_repo(request.content).first,
|
||||||
|
github_find_commit_hash(request.content),
|
||||||
};
|
};
|
||||||
|
|
||||||
const auto evid
|
const auto evid
|
||||||
|
@ -1442,7 +1442,7 @@ github_handle__status(std::ostream &out,
|
||||||
content["body"]
|
content["body"]
|
||||||
};
|
};
|
||||||
|
|
||||||
return body == commit_hash;
|
return has(body, "push") && has(body, commit_hash);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue