aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-11-14 09:56:17 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-11-14 12:49:11 +0200
commitc92a7cf4102ecf7b6dc580ad20ee9a5af56bd2ea (patch)
tree8a19f8efe3307829a5349cdcc7b57ce39e2a0a71 /mod
parent1b538fec0bf5edd6d88a9424b6e23f187920479e (diff)
Respond with error to re-request of conclusion check run
Diffstat (limited to 'mod')
-rw-r--r--mod/mod-ci-github.cxx8
1 files 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.