mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +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;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::ostream &
|
std::ostream &
|
||||||
github_handle__push(std::ostream &out,
|
github_handle__push(std::ostream &out,
|
||||||
const json::object &content)
|
const json::object &content)
|
||||||
{
|
{
|
||||||
|
@ -541,7 +541,7 @@ github_handle__ping(std::ostream &out,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Researched from yestifico bot
|
/// Researched from yestifico bot
|
||||||
static std::pair<string_view, string_view>
|
std::pair<string_view, string_view>
|
||||||
github_find_party(const json::object &content)
|
github_find_party(const json::object &content)
|
||||||
{
|
{
|
||||||
const json::object pull_request
|
const json::object pull_request
|
||||||
|
@ -574,7 +574,7 @@ github_find_party(const json::object &content)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Researched from yestifico bot
|
/// Researched from yestifico bot
|
||||||
static string_view
|
ircd::string_view
|
||||||
github_find_issue_number(const json::object &content)
|
github_find_issue_number(const json::object &content)
|
||||||
{
|
{
|
||||||
const json::object issue(content["issue"]);
|
const json::object issue(content["issue"]);
|
||||||
|
@ -588,7 +588,7 @@ github_find_issue_number(const json::object &content)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Researched from yestifico bot
|
/// Researched from yestifico bot
|
||||||
static string_view
|
ircd::string_view
|
||||||
github_find_commit_hash(const json::object &content)
|
github_find_commit_hash(const json::object &content)
|
||||||
{
|
{
|
||||||
if(content["sha"])
|
if(content["sha"])
|
||||||
|
@ -616,7 +616,7 @@ github_find_commit_hash(const json::object &content)
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
bool
|
||||||
github_validate(const string_view &sigheader,
|
github_validate(const string_view &sigheader,
|
||||||
const const_buffer &content,
|
const const_buffer &content,
|
||||||
const string_view &secret)
|
const string_view &secret)
|
||||||
|
|
Loading…
Reference in a new issue