From c2e744d452d1836cdbf7336f327b6d2806e652ff Mon Sep 17 00:00:00 2001 From: KitsuneSolar Date: Wed, 26 Jul 2023 01:04:01 +0000 Subject: [PATCH] 2023-07-26 01:04:01 --- CONTRIBUTING.md | 2 +- README.md | 72 ++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 72 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f370a5c..e6b43e0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ - Feedback, wishes and suggestions can be sent by email. - Constructive criticism, bug descriptions and other reports are welcome. -- Email: mail@ihub.to +- Email: [mail@ihub.to](mailto:mail@ihub.to) / [mail@kitsune.solar](mailto:mail@kitsune.solar). ## Sources diff --git a/README.md b/README.md index 7021485..f7d4497 100644 --- a/README.md +++ b/README.md @@ -1 +1,71 @@ -# bash-gitea-api \ No newline at end of file +# 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.