Skip to content

Commit df556ef

Browse files
author
不四
committed
add branch
1 parent d8b1cc1 commit df556ef

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

lib/branch.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*!
2+
* gitlab - lib/branch.js
3+
* Copyright(c) 2014 dead_horse <[email protected]>
4+
* MIT Licensed
5+
*/
6+
7+
"use strict";
8+
9+
/**
10+
* Module dependencies.
11+
*/
12+
13+
var util = require('util');
14+
var restful = require('restful-client');
15+
16+
function Branch(client) {
17+
this.constructor.super_.call(this, client, '/projects/:id/branches', 'branch');
18+
}
19+
util.inherits(Branch, restful.RESTFulResource);
20+
21+
module.exports = Branch;

0 commit comments

Comments
 (0)