reserved.md 1.8 KB
Newer Older
Lab机器人's avatar
Lab机器人 已提交
1
# 预留命名空间[](#预留命名空间 "Permalink")
Lab机器人's avatar
readme  
Lab机器人 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85

并非所有项目和组名都被允许,因为它们会与 GitLab 使用的现有路由冲突.

有关不允许用作组名或项目名的单词的列表,请参阅`TOP_LEVEL_ROUTES``PROJECT_WILDCARD_ROUTES``GROUP_ROUTES`列表下的[`path_regex.rb`文件](https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/path_regex.rb)

*   `TOP_LEVEL_ROUTES` :是保留为用户名或顶级组的名称
*   `PROJECT_WILDCARD_ROUTES` :是为子组或项目保留的名称.
*   `GROUP_ROUTES` :是为所有组或项目保留的名称.

## Reserved project names[](#reserved-project-names "Permalink")

当前无法创建具有以下名称的项目:

*   `\-`
*   `badges`
*   `blame`
*   `blob`
*   `builds`
*   `commits`
*   `create`
*   `create_dir`
*   `edit`
*   `environments/folders`
*   `files`
*   `find_file`
*   `gitlab-lfs/objects`
*   `info/lfs/objects`
*   `new`
*   `preview`
*   `raw`
*   `refs`
*   `tree`
*   `update`
*   `wikis`

## Reserved group names[](#reserved-group-names "Permalink")

当前,以下名称保留为顶级组:

*   `\-`
*   `.well-known`
*   `404.html`
*   `422.html`
*   `500.html`
*   `502.html`
*   `503.html`
*   `abuse_reports`
*   `admin`
*   `api`
*   `apple-touch-icon-precomposed.png`
*   `apple-touch-icon.png`
*   `assets`
*   `autocomplete`
*   `dashboard`
*   `deploy.html`
*   `explore`
*   `favicon.ico`
*   `favicon.png`
*   `files`
*   `groups`
*   `health_check`
*   `help`
*   `import`
*   `invites`
*   `jwt`
*   `login`
*   `oauth`
*   `profile`
*   `projects`
*   `public`
*   `robots.txt`
*   `s`
*   `search`
*   `sent_notifications`
*   `slash-command-logo.png`
*   `snippets`
*   `unsubscribes`
*   `uploads`
*   `users`
*   `v2`

这些组名不能用作子组名:

*   `\-`