feat(gitea): Create repositories as private by default
Changed default visibility from public to private for new Gitea repositories created by metablogizerctl and streamlitctl. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
90f555f38a
commit
54113d8454
@ -497,7 +497,7 @@ cmd_gitea_push() {
|
||||
local create_result=$(curl -s -X POST \
|
||||
-H "Authorization: token $gitea_token" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"name\":\"${repo_name}\",\"description\":\"MetaBlogizer site: ${name}\",\"private\":false,\"auto_init\":false}" \
|
||||
-d "{\"name\":\"${repo_name}\",\"description\":\"MetaBlogizer site: ${name}\",\"private\":true,\"auto_init\":false}" \
|
||||
"${gitea_url}/api/v1/user/repos" 2>/dev/null)
|
||||
|
||||
if ! echo "$create_result" | grep -q "\"name\":"; then
|
||||
|
||||
@ -1085,7 +1085,7 @@ cmd_gitea_push() {
|
||||
local create_result=$(curl -s -X POST \
|
||||
-H "Authorization: token $gitea_token" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"name\":\"${repo_name}\",\"description\":\"Streamlit app: ${name}\",\"private\":false,\"auto_init\":false}" \
|
||||
-d "{\"name\":\"${repo_name}\",\"description\":\"Streamlit app: ${name}\",\"private\":true,\"auto_init\":false}" \
|
||||
"${gitea_url}/api/v1/user/repos" 2>/dev/null)
|
||||
|
||||
if ! echo "$create_result" | grep -q "\"name\":"; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user