Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement CI pipeline status reporting when evaluating MR #17

Merged
merged 10 commits into from
May 11, 2024
Prev Previous commit
fix: update --update-pipeline env var
jippi committed May 11, 2024
commit 97eb963539c4f2d536e6826b31b27d71777433ee
2 changes: 1 addition & 1 deletion docs/commands/evaluate.md
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ OPTIONS:
--project value GitLab project (example: 'gitlab-org/gitlab') [$GITLAB_PROJECT, $CI_PROJECT_PATH]
--id value The pull/merge ID to process, if not provided as a CLI flag [$CI_MERGE_REQUEST_IID]
--commit value The git commit sha [$CI_COMMIT_SHA]
--update-pipeline Update the CI pipeline status with progress (default: true) [$SCM_ENGINE_SKIP_PIPELINE]
--update-pipeline Update the CI pipeline status with progress (default: true) [$SCM_ENGINE_UPDATE_PIPELINE]
--help, -h show help

GLOBAL OPTIONS:
2 changes: 1 addition & 1 deletion docs/commands/server.md
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ USAGE:
OPTIONS:
--webhook-secret value Used to validate received payloads. Sent with the request in the X-Gitlab-Token HTTP header [$SCM_ENGINE_WEBHOOK_SECRET]
--listen value IP + Port that the HTTP server should listen on (default: "0.0.0.0:3000") [$SCM_ENGINE_LISTEN]
--update-pipeline Update the CI pipeline status with progress (default: true) [$SCM_ENGINE_SKIP_PIPELINE]
--update-pipeline Update the CI pipeline status with progress (default: true) [$SCM_ENGINE_UPDATE_PIPELINE]
--help, -h show help

GLOBAL OPTIONS:
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -72,6 +72,7 @@ func main() {
&cli.BoolFlag{
Name: cmd.FlagDryRun,
Usage: "Dry run, don't actually _do_ actions, just print them",
Value: false,
},
},
Commands: []*cli.Command{
@@ -110,7 +111,7 @@ func main() {
Usage: "Update the CI pipeline status with progress",
Value: true,
EnvVars: []string{
"SCM_ENGINE_SKIP_PIPELINE",
"SCM_ENGINE_UPDATE_PIPELINE",
},
},
},
@@ -140,7 +141,7 @@ func main() {
Usage: "Update the CI pipeline status with progress",
Value: true,
EnvVars: []string{
"SCM_ENGINE_SKIP_PIPELINE",
"SCM_ENGINE_UPDATE_PIPELINE",
},
},
},