Open Yikun opened 2 years ago
User: repo list: https://gitlab.com/api/v4/users/yikunkero/projects create repo: curl --header "PRIVATE-TOKEN: $token" -XPOST "https://gitlab.com/api/v4/projects?name=repo_name&visibility=public"
Group: repo list: https://gitlab.com/api/v4/groups/hub-mirror-action/projects
create repo: curl --header "PRIVATE-TOKEN: $token" "https://gitlab.com/api/v4/namespaces/hub-mirror-action" | jq .id
curl --header "PRIVATE-TOKEN: $token" -X POST "https://gitlab.com/api/v4/projects?name=test4&namespace_id=$id&visibility=public"
User: repo list: https://gitlab.com/api/v4/users/yikunkero/projects create repo: curl --header "PRIVATE-TOKEN: $token" -XPOST "https://gitlab.com/api/v4/projects?name=repo_name&visibility=public"
Group: repo list: https://gitlab.com/api/v4/groups/hub-mirror-action/projects
create repo: curl --header "PRIVATE-TOKEN: $token" "https://gitlab.com/api/v4/namespaces/hub-mirror-action" | jq .id
curl --header "PRIVATE-TOKEN: $token" -X POST "https://gitlab.com/api/v4/projects?name=test4&namespace_id=$id&visibility=public"