diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-12-13 16:07:14 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-12-17 14:22:51 +0200 |
commit | bcecc41a017f4f4ed46bbe0ab2decdffe53a2130 (patch) | |
tree | 8541e11d0b7866cb2d421165d98eadc5a6f9804b /mod/mod-ci-github-gh.cxx | |
parent | d47bb910c9c2d1eb782f9d04e624945b4a0e0de8 (diff) |
ci-github: Handle branch pushes in handle_push_event()
Diffstat (limited to 'mod/mod-ci-github-gh.cxx')
-rw-r--r-- | mod/mod-ci-github-gh.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mod/mod-ci-github-gh.cxx b/mod/mod-ci-github-gh.cxx index 70155ad..dc85ba2 100644 --- a/mod/mod-ci-github-gh.cxx +++ b/mod/mod-ci-github-gh.cxx @@ -663,7 +663,8 @@ namespace brep { p.next_expect (event::begin_object); - bool rf (false), bf (false), af (false), fd (false), rp (false); + bool rf (false), bf (false), af (false), fd (false), rp (false), + in (false); // Skip unknown/uninteresting members. // @@ -679,6 +680,7 @@ namespace brep else if (c (af, "after")) after = p.next_expect_string (); else if (c (fd, "forced")) forced = p.next_expect_boolean<bool> (); else if (c (rp, "repository")) repository = gh_repository (p); + else if (c (in, "installation")) installation = gh_installation (p); else p.next_expect_value_skip (); } @@ -687,6 +689,7 @@ namespace brep if (!af) missing_member (p, "gh_push_event", "after"); if (!fd) missing_member (p, "gh_push_event", "forced"); if (!rp) missing_member (p, "gh_push_event", "repository"); + if (!in) missing_member (p, "gh_push_event", "installation"); } ostream& @@ -696,7 +699,8 @@ namespace brep << ", before: " << p.before << ", after: " << p.after << ", forced: " << p.forced - << ", repository { " << p.repository << " }"; + << ", repository { " << p.repository << " }" + << ", installation { " << p.installation << " }"; return os; } |