Yikun / hub-mirror-action

一个Github Action,用于在Github和Gitee之间同步代码。Action for mirroring repos between Hubs (like Github and Gitee).
MIT License
634 stars 173 forks source link

Add support for gitlab mirror #143

Open Yikun opened 2 years ago

Yikun commented 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"