Go to file
Kai Kimera 83c85f54c8
2024-02-18 14:42:16
2024-02-18 17:42:16 +03:00
.github/workflows 2023-07-24 22:12:05 2023-07-24 22:12:05 +00:00
CHANGELOG.md 2023-07-24 21:52:35 2023-07-24 21:52:35 +00:00
CONTRIBUTING.md 2024-02-01 04:16:57 2024-02-01 04:16:57 +00:00
LICENSE 2024-02-01 04:16:57 2024-02-01 04:16:57 +00:00
README.md 2023-07-26 01:04:01 2023-07-26 01:04:01 +00:00
repo.create.sh 2024-02-18 14:42:16 2024-02-18 17:42:16 +03:00
repo.delete.sh 2024-02-18 14:42:16 2024-02-18 17:42:16 +03:00
repo.transfer.sh 2024-02-18 14:42:16 2024-02-18 17:42:16 +03:00
repo.update.sh 2024-02-18 14:42:16 2024-02-18 17:42:16 +03:00

README.md

Bash tools for Gitea API

Tools for automating work with Gitea.

Syntax

Creating repository

  • repo.create.sh
    • -x 'TOKEN'
      Gitea user token.
    • -a 'https://gitea.com'
      Gitea API URL.
    • -o 'OWNER'
      Organization name. This is not case sensitive.
    • -r 'REPO_1;REPO_2;REPO_3'
      Repository name (array).
    • -d 'DESCRIPTION'
      Repository description.
    • -l 'mit'
      Open source license template. For example, "mit" or "mpl-2.0".
    • -b 'main'
      Repository default branch.
    • -i
      Repository auto-init.
    • -p
      Whether repository is private.

Deleting repository

  • repo.delete.sh
    • -x 'TOKEN'
      Gitea user token.
    • -a 'https://gitea.com'
      Gitea API URL.
    • -o 'OWNER'
      Repository owner (organization).
    • -r 'REPO_1;REPO_2;REPO_3'
      Repository name (array).

Transferring repository

  • repo.transfer.sh
    • -x 'TOKEN'
      Gitea user token.
    • -a 'https://gitea.com'
      Gitea API URL.
    • -o 'OWNER_OLD'
      OLD repository owner (organization).
    • -n 'OWNER_NEW'
      NEW repository owner (organization).
    • -r 'REPO_1;REPO_2;REPO_3'
      Repository name (array).

Updating repository

  • repo.update.sh
    • -x 'TOKEN'
      Gitea user token.
    • -a 'https://gitea.com'
      Gitea API URL.
    • -o 'OWNER'
      Organization name. This is not case sensitive.
    • -r 'REPO_1;REPO_2;REPO_3'
      Repository name (array).
    • -d 'DESCRIPTION'
      Repository description.
    • -b 'main'
      Repository default branch.
    • -p
      Whether repository is private.