-
-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b39ef76
commit 7a90dbb
Showing
6 changed files
with
75 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,63 @@ | ||
## Project Members | ||
## Project Hooks | ||
|
||
* [List all hooks](#list-all-hooks) | ||
* [Get a hook](#get-a-hook) | ||
* [Create a hook](#create-a-hook) | ||
* [Edit a hook](#edit-a-hook) | ||
* [Add a hook](#add-a-hook-to-a-project) | ||
* [Edit a hook](#edit-a-hook) | ||
* [Remove a hook](#remove-a-hook) | ||
|
||
### List all hooks | ||
|
||
Get a list of project hooks. | ||
|
||
```javascript | ||
// From a project ID | ||
let hooks = GitlabAPI.projects.hooks.list(projectId); | ||
``` | ||
Parameters: [List all project hooks](https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/projects.md#list-project-hooks) | ||
|
||
### Get a hook | ||
|
||
Get a specific hook for a project. | ||
|
||
```javascript | ||
// From a project ID | ||
let hook = GitlabAPI.projects.hooks.show(projectId, hookId); | ||
``` | ||
Parameters: [Get project hook](https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/projects.md#get-project-hook) | ||
|
||
### Add a hook to a project | ||
|
||
Adds a hook to a specified project. | ||
|
||
```javascript | ||
// From a project ID | ||
let hook = GitlabAPI.projects.hooks.add(projectId, { | ||
// params | ||
}); | ||
``` | ||
Parameters: [Add a hook](https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/projects.md#add-project-hook) | ||
|
||
### Edit a hook | ||
|
||
Edits a hook for a specified project. | ||
|
||
```javascript | ||
// From a project ID | ||
let hook = GitlabAPI.projects.hooks.edit(projectId, hookId, { | ||
// params | ||
}); | ||
``` | ||
Parameters: [Edit a hook](https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/projects.md#edit-project-hook) | ||
|
||
### Remove a hook | ||
|
||
Remove a hook from a project. | ||
|
||
```javascript | ||
// From a project ID | ||
GitlabAPI.projects.hooks.remove(projectId, hookId); | ||
``` | ||
Parameters: [Remove a hook](https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/projects.md#delete-project-hook) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters