Go to file
Kai Kimera d2f4f7c62e
2024-02-18 14:42:26
2024-02-18 17:42:26 +03:00
.github/workflows 2023-07-24 21:52:43 2023-07-24 21:52:43 +00:00
CHANGELOG.md 2023-07-18 21:02:38 2023-07-18 21:02:38 +00:00
CONTRIBUTING.md 2024-02-01 04:16:59 2024-02-01 04:16:59 +00:00
LICENSE 2024-02-01 04:16:59 2024-02-01 04:16:59 +00:00
README.md 2023-07-24 22:09:26 2023-07-24 22:09:26 +00:00
repo.create.sh 2024-02-18 14:42:26 2024-02-18 17:42:26 +03:00
repo.delete.sh 2024-02-18 14:42:26 2024-02-18 17:42:26 +03:00
repo.topics.sh 2024-02-18 14:42:26 2024-02-18 17:42:26 +03:00
repo.transfer.sh 2024-02-18 14:42:26 2024-02-18 17:42:26 +03:00
repo.update.sh 2024-02-18 14:42:26 2024-02-18 17:42:26 +03:00

README.md

Bash tools for GitHub API

Tools for automating work with GitHub.

Syntax

Creating repository

  • repo.create.sh
    • -x 'TOKEN'
      GitHub user token.
    • -o 'OWNER'
      Organization name. This is not case sensitive.
    • -r 'REPO_1;REPO_2;REPO_3'
      Repository name (array).
    • -d 'DESCRIPTION'
      Repository description.
    • -s 'https://example.org/'
      Repository site URL.
    • -l 'mit'
      Open source license template. For example, "mit" or "mpl-2.0".
    • -p
      Whether repository is private.
    • -i
      Enable issues for this repository.
    • -j
      Enable projects for this repository. NOTE: If you're creating a repository in an organization that has disabled repository projects, the API returns an error.
    • -w
      Enable wiki for this repository.
    • -u
      Create an initial commit with empty README.

Deleting repository

  • repo.delete.sh
    • -x 'TOKEN'
      GitHub user token.
    • -o 'OWNER'
      Repository owner (organization).
    • -r 'REPO_1;REPO_2;REPO_3'
      Repository name (array).

Updating topics

  • repo.topics.sh
    • -x 'TOKEN'
      GitHub user token.
    • -o 'OWNER'
      Repository owner (organization).
    • -r 'REPO_1;REPO_2;REPO_3'
      Repository name (array).
    • -t 'TOPIC_1;TOPIC_2;TOPIC_3'
      Topic name (array).

Transferring repository

  • repo.transfer.sh
    • -x 'TOKEN'
      GitHub user token.
    • -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'
      GitHub user token.
    • -o 'OWNER'
      Repository owner (organization).
    • -r 'REPO_1;REPO_2;REPO_3'
      Repository name (array).
    • -d 'DESCRIPTION'
      Repository description.
    • -s 'https://example.org/'
      Repository site URL.
    • -p
      Whether repository is private.
    • -i
      Enable issues for this repository.
    • -j
      Enable projects for this repository.
    • -w
      Enable wiki for this repository.