mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
modules/webhook: Minor cleanup; undress these definitions.
This commit is contained in:
parent
6947c7e953
commit
895358c48d
1 changed files with 5 additions and 5 deletions
|
@ -248,7 +248,7 @@ github_heading(std::ostream &out,
|
|||
return out;
|
||||
}
|
||||
|
||||
static std::ostream &
|
||||
std::ostream &
|
||||
github_handle__push(std::ostream &out,
|
||||
const json::object &content)
|
||||
{
|
||||
|
@ -541,7 +541,7 @@ github_handle__ping(std::ostream &out,
|
|||
}
|
||||
|
||||
/// Researched from yestifico bot
|
||||
static std::pair<string_view, string_view>
|
||||
std::pair<string_view, string_view>
|
||||
github_find_party(const json::object &content)
|
||||
{
|
||||
const json::object pull_request
|
||||
|
@ -574,7 +574,7 @@ github_find_party(const json::object &content)
|
|||
}
|
||||
|
||||
/// Researched from yestifico bot
|
||||
static string_view
|
||||
ircd::string_view
|
||||
github_find_issue_number(const json::object &content)
|
||||
{
|
||||
const json::object issue(content["issue"]);
|
||||
|
@ -588,7 +588,7 @@ github_find_issue_number(const json::object &content)
|
|||
}
|
||||
|
||||
/// Researched from yestifico bot
|
||||
static string_view
|
||||
ircd::string_view
|
||||
github_find_commit_hash(const json::object &content)
|
||||
{
|
||||
if(content["sha"])
|
||||
|
@ -616,7 +616,7 @@ github_find_commit_hash(const json::object &content)
|
|||
return {};
|
||||
}
|
||||
|
||||
static bool
|
||||
bool
|
||||
github_validate(const string_view &sigheader,
|
||||
const const_buffer &content,
|
||||
const string_view &secret)
|
||||
|
|
Loading…
Reference in a new issue