diff options
Diffstat (limited to 'mod/module.cli')
-rw-r--r-- | mod/module.cli | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/mod/module.cli b/mod/module.cli index 166adbd..d716c6e 100644 --- a/mod/module.cli +++ b/mod/module.cli @@ -796,11 +796,7 @@ namespace brep } }; - class ci_cancel - { - }; - - class ci: ci_start, page, repository_url, handler + class ci: ci_start, build, build_db, page, repository_url, handler { // Classic CI-specific options. // @@ -815,10 +811,11 @@ namespace brep } }; - // @@ TODO Is etc/brep-module.conf updated manually? Yes, will need to - // replicate there eventually. - // - class ci_github: ci_start, ci_cancel, build_db, handler, openssl_options + class ci_cancel: build, build_db, handler + { + }; + + class ci_github: ci_start, ci_cancel, repository_url { // GitHub CI-specific options. // @@ -832,14 +829,15 @@ namespace brep string ci-github-app-webhook-secret { "<secret>", - "The GitHub app's configured webhook secret." + "The GitHub App's configured webhook secret. If not set, then the + GitHub CI service is disabled." } path ci-github-app-private-key { "<path>", "The private key used during GitHub API authentication. Created in - the GitHub app's settings." + the GitHub App's settings." } uint16_t ci-github-jwt-validity-period = 600 @@ -1127,6 +1125,22 @@ namespace brep string simulate; }; + // All parameters are non-optional. + // + class ci_cancel + { + // CI task tenant id. + // + // Note that the ci-cancel parameter is renamed to '_' by the root + // handler (see the request_proxy class for details). + // + string id | _; + + // CI task canceling reason. Must not be empty. + // + string reason; + }; + // Parameters other than challenge must be all present. // // Note also that besides these parameters there can be others. We don't |