https://github.com/pkgstore/bash-gitea-api
Tools for automating work with Gitea.
https://github.com/pkgstore/bash-gitea-api
api api-client bash bash-script gitea linux
Last synced: 3 months ago
JSON representation
Tools for automating work with Gitea.
- Host: GitHub
- URL: https://github.com/pkgstore/bash-gitea-api
- Owner: pkgstore
- License: mit
- Created: 2023-07-20T00:35:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T14:42:26.000Z (about 2 years ago)
- Last Synced: 2025-01-20T08:32:51.962Z (about 1 year ago)
- Topics: api, api-client, bash, bash-script, gitea, linux
- Language: Shell
- Homepage: http://ihub.to
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Bash tools for Gitea API
Tools for automating work with [Gitea](https://gitea.com/).
## Syntax
### Creating repository
- [repo.create.sh](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](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](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](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.