Skip to content

Commit 5eb6f36

Browse files
authored
BUILD-7511: fix visibility in repository creation (#13)
1 parent 6012ed5 commit 5eb6f36

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.shellcheckrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
disable=SC2012

entrypoint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ create_repository() {
6464
if [ "$userType" == "User" ]; then
6565
curl --silent --show-error -X POST -i -H "Authorization: token $github_token" -H "X-GitHub-Api-Version: 2022-11-28" \
6666
-d "{ \
67-
\"name\": \"$repository_name\", \"$repository_visibility\": true
67+
\"name\": \"$repository_name\", \"visibility\": \"$repository_visibility\"
6868
}" \
6969
"$git_url/user/repos"
7070
elif [ "$userType" == "Organization" ]; then
7171
curl --silent --show-error -i -H "Authorization: token $github_token" \
7272
-d "{ \
73-
\"name\": \"$repository_name\", \"$repository_visibility\": true
73+
\"name\": \"$repository_name\", \"visibility\": \"$repository_visibility\"
7474
}" \
7575
"$git_url/orgs/$org_name/repos"
7676
else

0 commit comments

Comments
 (0)