To be honest, I do not quite remember everything I changed here today. But it is all good, I tell ya.

This commit is contained in:
2022-04-30 17:41:17 +03:00
parent 96847b4bea
commit 1e2839d605

View File

@@ -29,7 +29,7 @@ EOF
function createRepo() {
curl -X POST \
"$GITEA_URL/api/v1/user/repos?access_token=$(pass SelfHosted/giteaTokenForKonsthol | awk -F\" '{print $10}')" \
"$GITEA_URL/api/v1/user/repos?access_token=$(pass SelfHosted/giteaTokenForKonsthol)" \
-H "accept:application/json" \
-H "Content-Type: application/json" \
-d "{
@@ -48,7 +48,7 @@ curl -X POST \
function deleteRepo() {
curl -X DELETE \
"$GITEA_URL/api/v1/repos/$USERNAME/$1?access_token=$(pass SelfHosted/giteaTokenForKonsthol | awk -F\" '{print $10}')" \
"$GITEA_URL/api/v1/repos/$USERNAME/$1?access_token=$(pass SelfHosted/giteaTokenForKonsthol)" \
-H "accept:application/json"
}
@@ -56,7 +56,7 @@ curl -X DELETE \
function listRepos {
RESPONSE=$(curl -s -X GET \
"$GITEA_URL/api/v1/users/$USERNAME/repos?access_token=$(pass SelfHosted/giteaTokenForKonsthol | awk -F\" '{print $10}')" \
"$GITEA_URL/api/v1/users/$USERNAME/repos?access_token=$(pass SelfHosted/giteaTokenForKonsthol)" \
-H "accept:application/json" \
-H "Content-Type: application/json" \
-d "{