diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2025-02-19 14:15:27 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2025-02-20 15:46:07 +0200 |
commit | 2abb3ab35426189a9c478564a6426680c7cd3af0 (patch) | |
tree | 503087a1aef7159d9c23baffa39acb58605c5422 /mod/mod-ci-github-gh.cxx | |
parent | 87837b7aea82b817d61460601e76e7ae587ad31d (diff) |
ci-github: Get check suite id when creating check run and save in service data
Diffstat (limited to 'mod/mod-ci-github-gh.cxx')
-rw-r--r-- | mod/mod-ci-github-gh.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/mod-ci-github-gh.cxx b/mod/mod-ci-github-gh.cxx index 42afe1b..57c4700 100644 --- a/mod/mod-ci-github-gh.cxx +++ b/mod/mod-ci-github-gh.cxx @@ -268,6 +268,15 @@ namespace brep if (c (ni, "node_id")) node_id = p.next_expect_string (); else if (c (nm, "name")) name = p.next_expect_string (); else if (c (st, "status")) status = p.next_expect_string (); + // checkSuite is only present in some GraphQL responses and we select + // only the node id so there won't be any other members. + // + else if (p.name () == "checkSuite") + { + p.next_expect (event::begin_object); + check_suite_node_id = p.next_expect_member_string ("node_id"); + p.next_expect (event::end_object); + } else p.next_expect_value_skip (); } |