Go to file
Kai Kimera 48ba847c74
2024-02-18 14:42:28
2024-02-18 17:42:28 +03:00
.github/workflows 2023-07-24 22:12:06 2023-07-24 22:12:06 +00:00
CHANGELOG.md 2023-07-24 21:52:44 2023-07-24 21:52:44 +00:00
CONTRIBUTING.md 2024-02-01 04:17:00 2024-02-01 04:17:00 +00:00
LICENSE 2024-02-01 04:17:00 2024-02-01 04:17:00 +00:00
README.md 2023-07-26 01:04:09 2023-07-26 01:04:09 +00:00
repo.create.sh 2024-02-18 14:42:28 2024-02-18 17:42:28 +03:00
repo.delete.sh 2024-02-18 14:42:28 2024-02-18 17:42:28 +03:00
repo.transfer.sh 2024-02-18 14:42:28 2024-02-18 17:42:28 +03:00
repo.update.sh 2024-02-18 14:42:28 2024-02-18 17:42:28 +03:00

README.md

Bash tools for GitLab API

Tools for automating work with GitLab.

Syntax

Creating repository

  • repo.create.sh
    • -x 'TOKEN'
      GitLab user token.
    • -a 'https://gitlab.com'
      GitLab API URL.
    • -n 'NSID'
      Namespace ID for new repository.
    • -r 'REPO_1;REPO_2;REPO_3'
      Repository name (array).
    • -d 'DESCRIPTION'
      Repository description.
    • -v 'PRIVATE / INTERNAL / PUBLIC'
      Repository visibility level (private, internal, or public).

Deleting repository

  • repo.delete.sh
    • -x 'TOKEN'
      GitLab user token.
    • -a 'https://gitlab.com'
      GitLab API URL.
    • -r 'ORG/REPO_1;ORG/REPO_2'
      Repository name (array).

Transferring repository

  • repo.transfer.sh
    • -x 'TOKEN'
      GitLab user token.
    • -a 'https://gitlab.com'
      GitLab API URL.
    • -n 'NSID'
      NEW namespace ID for repository.
    • -r 'REPO_1;REPO_2;REPO_3'
      Repository name (array).

Updating repository

  • repo.update.sh
    • -x 'TOKEN'
      GitLab user token.
    • -a 'https://gitlab.com'
      GitLab API URL.
    • -r 'ORG/REPO_1;ORG/REPO_2'
      Repository name (array).
    • -d 'DESCRIPTION'
      Repository description.
    • -v 'PRIVATE / INTERNAL / PUBLIC'
      Repository visibility level (private, internal, or public).