Skip to content
GitLab
项目 群组 主题 代码片段
  • /
  • 帮助
    • 帮助
    • 支持
    • 社区论坛
    • 提交反馈
  • 登录
  • L large
  • 项目信息
    • 项目信息
    • 动态
    • 标记
    • 成员
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者统计
    • 分支图
    • 比较修订版本
  • 议题 21
    • 议题 21
    • 列表
    • 看板
    • 服务台
    • 里程碑
  • 合并请求 12
    • 合并请求 12
  • CI/CD
    • CI/CD
    • 流水线
    • 作业
    • 产物
    • 计划
  • 部署
    • 部署
    • 环境
    • 发布
  • 软件包与镜像库
    • 软件包与镜像库
    • 软件包库
    • 容器镜像库
    • Terraform 模块
    • 模型实验
  • 监控
    • 监控
    • 事件
  • 分析
    • 分析
    • 价值流
    • CI/CD
    • 仓库
  • Wiki
    • Wiki
  • 代码片段
    • 代码片段
  • 动态
  • 分支图
  • 创建新议题
  • 作业
  • 提交
  • 议题看板
收起侧边栏
  • 王权利
  • large
  • 议题
  • #6811

Import URL not available when creating project for a given user

Created by: minorOffense

I'm not sure if this is a bug in the docs or if in fact you can't set an import_url value when creating a project for a given user.

See http://doc.gitlab.com/ce/api/projects.html for more details but here's the gist of it

If you create a project directly, you can specify the import_url

Create project

Creates new project owned by user.

POST /projects Parameters:

name (required) - new project name namespace_id (optional) - namespace for the new project (defaults to user) description (optional) - short project description issues_enabled (optional) wall_enabled (optional) merge_requests_enabled (optional) wiki_enabled (optional) snippets_enabled (optional) public (optional) - if true same as setting visibility_level = 20 visibility_level (optional) import_url (optional)

But the next set of docs don't list import_url as an option

Create project for user

Creates a new project owned by user. Available only for admins.

POST /projects/user/:user_id Parameters:

user_id (required) - user_id of owner name (required) - new project name description (optional) - short project description default_branch (optional) - 'master' by default issues_enabled (optional) wall_enabled (optional) merge_requests_enabled (optional) wiki_enabled (optional) snippets_enabled (optional) public (optional) - if true same as setting visibility_level = 20 visibility_level (optional)

Is it in fact the case that import_url isn't valid? Or a typo in the docs. If it's a typo, I can submit a pull request. If not, then I'll go make a feature request in the appropriate spot.

Thanks!

指派人
分配到
工时统计