gh-gei icon indicating copy to clipboard operation
gh-gei copied to clipboard

If a migration doesn't run due to invalid (or missing required) parameters exit code is always zero

Open tspascoal opened this issue 2 years ago • 0 comments

Description

If a migration isn't executed because there are invalid or missing required parameters the exit code is set to zero

This complicates automation of migrations

$  gh gei migrate-org --dummy
[2023-06-13 11:51:30] [INFO] You are running the latest version of the gei CLI [v0.44]
Option '--github-source-org' is required.
Option '--github-target-org' is required.
Option '--github-target-enterprise' is required.
Unrecognized command or argument '--dummy'.

Description:
  Invokes the GitHub APIs to migrate a GitHub org with its teams and the repositories.

Usage:
  gh-gei migrate-org [options]
....
$ echo $?
0

Reproduction Steps

tspascoal avatar Jun 13 '23 10:06 tspascoal