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() {
|
function createRepo() {
|
||||||
|
|
||||||
curl -X POST \
|
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 "accept:application/json" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{
|
-d "{
|
||||||
@@ -48,7 +48,7 @@ curl -X POST \
|
|||||||
function deleteRepo() {
|
function deleteRepo() {
|
||||||
|
|
||||||
curl -X DELETE \
|
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"
|
-H "accept:application/json"
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -56,7 +56,7 @@ curl -X DELETE \
|
|||||||
function listRepos {
|
function listRepos {
|
||||||
|
|
||||||
RESPONSE=$(curl -s -X GET \
|
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 "accept:application/json" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{
|
-d "{
|
||||||
|
|||||||
Reference in New Issue
Block a user