bir default_branch setleri Gitlab API ile bir proje göndermek için: o zaman olsunda böyle ben (açısal olarak) bir istek ile kendi API, aracılığıyla gitlab bir proje oluşturmayı deneyin
$http.post(
"https://gitlab.com/api/v3/projects",
{private_token: <token>}
)
Ama , bir döndürülen veri olarak, bir default_branch: null ile bir proje belgesi ... ve sonra proje, örneğin "https://gitlab.com/api/v3/projects//deposu/files" API'sine sahip post dosyaları ile projeyi güncellemek imkansızdır çünkü gitlab bana bir hata döndürecektir belirli bir dalda olması gerekir. Ben de bir ref parametresi belirtmeniz gerekir çünkü
Maalesef
$http.post(
"https://gitlab.com/api/v3/projects/<projectId>/repository/branches",
{
private_token: <token>
branch_name: "master"
}
)
bir dalı sonrası ... ayrıca bir hata beni döndürür, ancak henüz bir yoksa hiç mantıklı olur kökeni ana dal! Projeniz boş (hiçbir git nesneleri içeren) ise