You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add --dry-run flag
Fixes#14
Signed-off-by: Christian Winther <jippignu@gmail.com>
* docs: update docs a bit
---------
Signed-off-by: Christian Winther <jippignu@gmail.com>
--project value GitLab project (example: 'gitlab-org/gitlab') [$GITLAB_PROJECT, $CI_PROJECT_PATH]
162
163
--id value, --merge-request-id value, --pull-request-id value The pull/merge to process, if not provided as a CLI flag [$CI_MERGE_REQUEST_IID]
164
+
--help, -h show help
163
165
164
166
GLOBAL OPTIONS:
165
167
--config value Path to the scm-engine config file (default: ".scm-engine.yml") [$SCM_ENGINE_CONFIG_FILE]
166
168
--api-token value GitHub/GitLab API token [$SCM_ENGINE_TOKEN]
167
-
--project value GitLab project (example: 'gitlab-org/gitlab') [$GITLAB_PROJECT, $CI_PROJECT_PATH]
168
169
--base-url value Base URL for the SCM instance (default: "https://gitlab.com/") [$GITLAB_BASEURL, $CI_SERVER_URL]
170
+
--dry-run Dry run, don't actually _do_ actions, just print them (default: false)
169
171
--help, -h show help
172
+
--version, -v print the version
173
+
```
174
+
175
+
### `server`
176
+
177
+
Point your GitLab webhook at the `/gitlab` endpoint.
178
+
179
+
Support the following events, and they will both trigger an Merge Request `evaluation`
180
+
181
+
- [`Comments`](https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#comment-events) - A comment is made or edited on an issue or merge request.
182
+
- [`Merge request events`](https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#merge-request-events) - A merge request is created, updated, or merged.
183
+
184
+
> [!TIP]
185
+
> You have access to the raw webhook event payload via `webhook_event.*` fields in Expr script fields when using `server` mode. See the [GitLab Webhook Events documentation](https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html) for available fields.
186
+
187
+
```plain
188
+
NAME:
189
+
scm-engine server - Start HTTP server for webhook event driven usage
190
+
191
+
USAGE:
192
+
scm-engine server [command options]
193
+
194
+
OPTIONS:
195
+
--webhook-secret value Used to validate received payloads. Sent with the request in the X-Gitlab-Token HTTP header [$SCM_ENGINE_WEBHOOK_SECRET]
196
+
--listen value Port the HTTP server should listen on (default: "0.0.0.0:3000") [$SCM_ENGINE_LISTEN]
197
+
--help, -h show help
198
+
199
+
GLOBAL OPTIONS:
200
+
--config value Path to the scm-engine config file (default: ".scm-engine.yml") [$SCM_ENGINE_CONFIG_FILE]
201
+
--api-token value GitHub/GitLab API token [$SCM_ENGINE_TOKEN]
202
+
--base-url value Base URL for the SCM instance (default: "https://gitlab.com/") [$GITLAB_BASEURL, $CI_SERVER_URL]
203
+
--dry-run Dry run, don't actually _do_ actions, just print them (default: false)
0 commit comments