mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 23:56:09 +10:00
Merge branch 'master' of github.com:gitlabhq/gitlabhq
This commit is contained in:
@@ -40,7 +40,7 @@ module TreeHelper
|
||||
# Returns boolean
|
||||
def markup?(filename)
|
||||
filename.downcase.end_with?(*%w(.textile .rdoc .org .creole
|
||||
.mediawiki .rst .asciidoc .pod))
|
||||
.mediawiki .rst .adoc .asciidoc .pod))
|
||||
end
|
||||
|
||||
def gitlab_markdown?(filename)
|
||||
|
||||
+1
-1
@@ -249,7 +249,7 @@ class User < ActiveRecord::Base
|
||||
def namespace_uniq
|
||||
namespace_name = self.username
|
||||
if Namespace.find_by(path: namespace_name)
|
||||
self.errors.add :username, "already exist"
|
||||
self.errors.add :username, "already exists"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
+70
-70
@@ -1,70 +1,70 @@
|
||||
All methods require admin authorization.
|
||||
|
||||
The url endpoint of the system hooks can be configured in [the admin area under hooks](/admin/hooks).
|
||||
|
||||
## List system hooks
|
||||
|
||||
Get list of system hooks
|
||||
|
||||
```
|
||||
GET /hooks
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
||||
+ **none**
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id":3,
|
||||
"url":"http://example.com/hook",
|
||||
"created_at":"2013-10-02T10:15:31Z"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
## Add new system hook hook
|
||||
|
||||
```
|
||||
POST /hooks
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
||||
+ `url` (required) - The hook URL
|
||||
|
||||
|
||||
## Test system hook
|
||||
|
||||
```
|
||||
GET /hooks/:id
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of hook
|
||||
|
||||
```json
|
||||
{
|
||||
"event_name":"project_create",
|
||||
"name":"Ruby",
|
||||
"path":"ruby",
|
||||
"project_id":1,
|
||||
"owner_name":"Someone",
|
||||
"owner_email":"example@gitlabhq.com"
|
||||
}
|
||||
```
|
||||
|
||||
## Delete system hook
|
||||
|
||||
Deletes a system hook. This is an idempotent API function and returns `200 Ok` even if the hook
|
||||
is not available. If the hook is deleted it is also returned as JSON.
|
||||
|
||||
```
|
||||
DELETE /hooks/:id
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of hook
|
||||
All methods require admin authorization.
|
||||
|
||||
The url endpoint of the system hooks can be configured in [the admin area under hooks](/admin/hooks).
|
||||
|
||||
## List system hooks
|
||||
|
||||
Get list of system hooks
|
||||
|
||||
```
|
||||
GET /hooks
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
||||
+ **none**
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id":3,
|
||||
"url":"http://example.com/hook",
|
||||
"created_at":"2013-10-02T10:15:31Z"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
## Add new system hook hook
|
||||
|
||||
```
|
||||
POST /hooks
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
||||
+ `url` (required) - The hook URL
|
||||
|
||||
|
||||
## Test system hook
|
||||
|
||||
```
|
||||
GET /hooks/:id
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of hook
|
||||
|
||||
```json
|
||||
{
|
||||
"event_name":"project_create",
|
||||
"name":"Ruby",
|
||||
"path":"ruby",
|
||||
"project_id":1,
|
||||
"owner_name":"Someone",
|
||||
"owner_email":"example@gitlabhq.com"
|
||||
}
|
||||
```
|
||||
|
||||
## Delete system hook
|
||||
|
||||
Deletes a system hook. This is an idempotent API function and returns `200 Ok` even if the hook
|
||||
is not available. If the hook is deleted it is also returned as JSON.
|
||||
|
||||
```
|
||||
DELETE /hooks/:id
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of hook
|
||||
|
||||
@@ -18,7 +18,7 @@ New releases are generally around the same time as GitLab CE releases with excep
|
||||
|
||||
# System Layout
|
||||
|
||||
When referring to ~git in the picures it means the home directory of the git user which is typically /home/git.
|
||||
When referring to ~git in the pictures it means the home directory of the git user which is typically /home/git.
|
||||
|
||||
GitLab is primarily installed within the `/home/git` user home directory as `git` user.
|
||||
Within the home directory is where the gitlabhq server software resides as well as the repositories (though the repository location is configurable).
|
||||
|
||||
Reference in New Issue
Block a user