1
- gitlab [ ![ Build Status] ( https://secure.travis-ci.org/fengmk2 /gitlab.png )] ( http://travis-ci.org/fengmk2 /gitlab )
2
- [ ![ Coverage Status] ( https://coveralls.io/repos/fengmk2 /gitlab/badge.png )] ( https://coveralls.io/r/fengmk2 /gitlab )
1
+ gitlab [ ![ Build Status] ( https://secure.travis-ci.org/repo-utils /gitlab.png )] ( http://travis-ci.org/repo-utils /gitlab )
2
+ [ ![ Coverage Status] ( https://coveralls.io/repos/repo-utils /gitlab/badge.png )] ( https://coveralls.io/r/repo-utils /gitlab )
3
3
=======
4
4
5
- ![ logo] ( https://raw.github.com/fengmk2 /gitlab/master/logo.png )
5
+ ![ logo] ( https://raw.github.com/repo-utils /gitlab/master/logo.png )
6
6
7
7
Gitlab API nodejs client.
8
8
@@ -37,7 +37,7 @@ client.milestone.list({id: 1}, function (err, milestones) {
37
37
``` js
38
38
/**
39
39
* Get a project's milestone.
40
- *
40
+ *
41
41
* @param {Object} params
42
42
* - {Number} id, project's id
43
43
* - {Number} milestone_id, milestone's id.
@@ -47,7 +47,7 @@ Milestone.prototype.get = function (params, callback);
47
47
48
48
/**
49
49
* List a project's all milestones.
50
- *
50
+ *
51
51
* @param {Object} params
52
52
* - {Number} id, project's id.
53
53
* - {Number} [page=1], page number, default is `1`.
@@ -58,7 +58,7 @@ Milestone.prototype.list = function (params, callback);
58
58
59
59
/**
60
60
* Create a milestone.
61
- *
61
+ *
62
62
* @param {Object} params
63
63
* - {Number} id The ID of a project
64
64
* - {String} title The title of an milestone
@@ -88,18 +88,18 @@ Milestone.prototype.update = function (params, callback);
88
88
```js
89
89
/**
90
90
* Get a list of repository branches from a project, sorted by name alphabetically.
91
- *
91
+ *
92
92
* @param {Object} params
93
93
* - {String} id The ID of a project
94
94
* @param {Function} callback
95
95
*/
96
96
Repository.prototype.getBranches = function (params, callback);
97
97
98
98
/**
99
- * Protects a single project repository branch.
100
- * This is an idempotent function, protecting an already protected repository branch
99
+ * Protects a single project repository branch.
100
+ * This is an idempotent function, protecting an already protected repository branch
101
101
* still returns a 200 Ok status code.
102
- *
102
+ *
103
103
* @param {Object} params
104
104
* - {String} id The ID of a project
105
105
* - {String} branch The name of the branch
@@ -108,10 +108,10 @@ Repository.prototype.getBranches = function (params, callback);
108
108
Repository.prototype.protectBranch = function (params, callback);
109
109
110
110
/**
111
- * Unprotects a single project repository branch.
112
- * This is an idempotent function, unprotecting an already unprotected repository branch
111
+ * Unprotects a single project repository branch.
112
+ * This is an idempotent function, unprotecting an already unprotected repository branch
113
113
* still returns a 200 Ok status code.
114
- *
114
+ *
115
115
* @param {Object} params
116
116
* - {String} id The ID of a project
117
117
* - {String} branch The name of the branch
@@ -121,7 +121,7 @@ Repository.prototype.unprotectBranch = function (params, callback);
121
121
122
122
/**
123
123
* Get a single project repository branch.
124
- *
124
+ *
125
125
* @param {Object} params
126
126
* - {String} id The ID of a project
127
127
* - {String} branch The name of the branch
@@ -131,7 +131,7 @@ Repository.prototype.getBranch = function (params, callback);
131
131
132
132
/**
133
133
* Get a list of repository tags from a project, sorted by name in reverse alphabetical order.
134
- *
134
+ *
135
135
* @param {Object} params
136
136
* - {String} id The ID of a project
137
137
* @param {Function} callback
@@ -140,7 +140,7 @@ Repository.prototype.getTags = function (params, callback);
140
140
141
141
/**
142
142
* Get a list of repository commits in a project.
143
- *
143
+ *
144
144
* @param {Object} params
145
145
* - {String} id The ID of a project
146
146
* - {String} [ref_name] The name of a repository branch or tag or if not given the default branch
@@ -150,7 +150,7 @@ Repository.prototype.getCommits = function (params, callback);
150
150
151
151
/**
152
152
* Get a list of repository files and directories in a project.
153
- *
153
+ *
154
154
* @param {Object} params
155
155
* - {String} id The ID of a project
156
156
* - {String} [path] The path inside repository, default is '/'. Used to get contend of subdirectories. e.g.: `test`
@@ -161,7 +161,7 @@ Repository.prototype.getTree = function (params, callback);
161
161
162
162
/**
163
163
* Get the raw file contents for a file.
164
- *
164
+ *
165
165
* @param {Object} params
166
166
* - {String} id The ID of a project
167
167
* - {String} sha The commit or branch name
@@ -174,19 +174,19 @@ Repository.prototype.getBlob = function (params, callback);
174
174
## Authors
175
175
176
176
```bash
177
- $ git summary
177
+ $ git summary
178
178
179
179
project : gitlab
180
180
repo age : 5 months
181
181
active : 11 days
182
182
commits : 22
183
183
files : 26
184
- authors :
184
+ authors :
185
185
20 fengmk2 90.9%
186
186
2 Ondrej 9.1%
187
187
```
188
188
189
- ## License
189
+ ## License
190
190
191
191
(The MIT License)
192
192
0 commit comments