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:
6
giteaDo
6
giteaDo
@@ -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 "{
|
||||
|
||||
Reference in New Issue
Block a user