From c92a7cf4102ecf7b6dc580ad20ee9a5af56bd2ea Mon Sep 17 00:00:00 2001 From: Francois Kritzinger Date: Thu, 14 Nov 2024 09:56:17 +0200 Subject: Respond with error to re-request of conclusion check run --- mod/mod-ci-github.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx index bace849..53c6614 100644 --- a/mod/mod-ci-github.cxx +++ b/mod/mod-ci-github.cxx @@ -648,10 +648,12 @@ namespace brep // if (cr.check_run.name == conclusion_check_run_name) { - // @@ Let's fail it with appropriate diagnostics. - l3 ([&]{trace << "ignoring conclusion check_run";}); - return true; + + // 422 Unprocessable Content: The request was well-formed (i.e., + // syntactically correct) but could not be processed. + // + throw invalid_request (422, "Conclusion check run cannot be rebuilt"); } // Get a new installation access token. -- cgit v1.1