Commit 3204ab1b authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'fix/readme-api-gitlab' into 'main'

Fix: Gitlab API env variable in README and Help command

See merge request to-be-continuous/tools/gitlab-cp!74
parents 01e73e37 699ce5c0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -25,12 +25,14 @@ This tool recursively copies/synchronizes a GitLab group from one GitLab server

options:
  -h, --help            show this help message and exit
  --src-api SRC_API     GitLab source API
  --src-api SRC_GITLAB_API
                        GitLab source API
  --src-token SRC_TOKEN
                        GitLab source token (optional if source GitLab group and sub projects have `public` visibility)
  --src-sync-path SRC_SYNC_PATH
                        GitLab source root group path to synchronize
  --dest-api DEST_API   GitLab destination API
  --dest-api DEST_GITLAB_API
                        GitLab destination API
  --dest-token DEST_TOKEN
                        GitLab destination token with at least scopes `api,read_repository,write_repository` and `Owner` role
  --dest-sync-path DEST_SYNC_PATH
+2 −0
Original line number Diff line number Diff line
@@ -804,6 +804,7 @@ def run() -> None:
    parser.add_argument(
        "--src-api",
        default=os.getenv("SRC_GITLAB_API"),
        metavar="SRC_GITLAB_API",
        help="GitLab source API",
    )
    parser.add_argument(
@@ -819,6 +820,7 @@ def run() -> None:
    parser.add_argument(
        "--dest-api",
        default=os.getenv("DEST_GITLAB_API"),
        metavar="DEST_GITLAB_API",
        help="GitLab destination API",
    )
    parser.add_argument(