diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-12-06 11:41:31 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-12-06 14:13:26 +0200 |
commit | 041604583b51d292be694ab475712d86bb9af9b5 (patch) | |
tree | fe69f74d5f562d13b61063f0140f3734b3220462 /mod/mod-ci-github-gh.hxx | |
parent | cb1722cea9e4b6151758edd20e089f184fae7905 (diff) |
Post-review changesci-github-2
Diffstat (limited to 'mod/mod-ci-github-gh.hxx')
-rw-r--r-- | mod/mod-ci-github-gh.hxx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/mod/mod-ci-github-gh.hxx b/mod/mod-ci-github-gh.hxx index b34dfd1..ab6dbaa 100644 --- a/mod/mod-ci-github-gh.hxx +++ b/mod/mod-ci-github-gh.hxx @@ -26,9 +26,10 @@ namespace brep // GitHub request/response types (all start with gh_). // // Note that the GitHub REST and GraphQL APIs use different id types and - // values. In the REST API they are usually integers (but sometimes - // strings!) whereas in GraphQL they are always strings (note: - // base64-encoded and opaque, not just the REST id value as a string). + // values. In the REST API they are usually integers (but check the API + // reference for the object in question) whereas in GraphQL they are always + // strings (note: base64-encoded and opaque, not just the REST id value as a + // string). // // In both APIs the id field is called `id`, but REST responses and webhook // events also contain the corresponding GraphQL object's id in the @@ -65,9 +66,7 @@ namespace brep size_t check_runs_count; optional<string> conclusion; - // Note: unlike the check_run webhook's app_id this can be null. - // - optional<uint64_t> app_id; + string app_id; explicit gh_check_suite_ex (json::parser&); @@ -98,7 +97,7 @@ namespace brep string details_url; gh_check_suite check_suite; - uint64_t app_id; + string app_id; explicit gh_check_run_ex (json::parser&); @@ -130,7 +129,7 @@ namespace brep // simplicity we emulate check_suite and check_run by storing the app-id // webhook query parameter here. // - uint64_t app_id; + string app_id; explicit gh_pull_request (json::parser&); @@ -156,7 +155,7 @@ namespace brep // struct gh_installation { - uint64_t id; // Note: used for installation access token (REST API). + string id; // Note: used for installation access token (REST API). explicit gh_installation (json::parser&); |