Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用命令/其他程序创建仓库 #46

Open
abersheeran opened this issue Mar 3, 2022 · 4 comments
Open

使用命令/其他程序创建仓库 #46

abersheeran opened this issue Mar 3, 2022 · 4 comments
Labels
customization requirements for customization enhancement New feature or request

Comments

@abersheeran
Copy link

我希望能通过一个我自己编写的程序直接在我自己的codefever里创建仓库,而不需要手动到web界面点击创建。请问现在是否有这样的功能?如果没有,能否增加这样的功能。

@cubicwork
Copy link
Contributor

@abersheeran 您好,你应该需要的是一个创建仓库的 API,或者直接使用 git push 来创建仓库。 这两个特性我们目前都还不支持。 API 会在将来的计划中,目前 API 特性还在规划阶段。

如果你对 PHP 和 Codeignator 2.x 框架比较熟悉,你可以在 /apiv1/_internal 路由下自己完成一个创建项目的 API。或者 为 /apiv1/_internal/authSSH(authHTTP) 这两个路由中添加 仓库不存在自动创建 的逻辑 来支持 git push 创建仓库。

@cubicwork cubicwork added enhancement New feature or request customization requirements for customization labels Mar 4, 2022
@abersheeran
Copy link
Author

PHP我属于是能看懂但不太会写,那就等你们开发了。

@cubicwork
Copy link
Contributor

@abersheeran OK, 那我们有限考虑使用 git push 来创建仓库的的特性。此特性更新后,我们会回复关闭此 issue

@woodwm
Copy link

woodwm commented Mar 11, 2022

git push 创建 repository 有个问题,很可能敲错了repository 的名字,而导致新建了另外一个repository。好像GitHub 是有一个专门的命令行工具 gh来实现的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customization requirements for customization enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants