RocketChat/node-gitlab

Name: node-gitlab

Owner: Rocket.Chat

Description: gitlab api nodejs library

Forked from: node-gitlab/node-gitlab

Created: 2016-11-17 04:59:36.0

Updated: 2016-11-17 04:59:38.0

Pushed: 2016-11-17 06:16:15.0

Homepage: https://npmjs.org/package/gitlab

Size: 377

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

node-gitlab

Build Status (Travis) Dependency Status Bitdeli Badge Code Climate

NPM Badge

GitLab API Nodejs library. It wraps the HTTP api library described here.

Maintained by Manfred Touron and Dave Irvine

Install

stall from npm
install gitlab

Usage

URL to your GitLab instance should not include /api/v3 path.

Coffee-Script
nnection
ab = (require 'gitlab')
l:   'http://example.com'
ken: 'abcdefghij123456'

sting users
ab.users.all (users) ->
nsole.log "##{user.id}: #{user.email}, #{user.name}, #{user.created_at}" for user in users

sting projects
ab.projects.all (projects) ->
r project in projects
console.log "##{project.id}: #{project.name}, path: #{project.path}, default_branch: #{project.default_branch}, private: #{project.private}, owner: #{project.owner.name} (#{project.owner.email}), date: #{project.created_at}"
Javascript
onnection
gitlab = require('gitlab')({
l:   'http://example.com',
ken: 'abcdefghij123456'


isting users
ab.users.all(function(users) {
r (var i = 0; i < users.length; i++) {
console.log("#" + users[i].id + ": " + users[i].email + ", " + users[i].name + ", " + users[i].created_at);



isting projects
ab.projects.all(function(projects) {
r (var i = 0; i < projects.length; i++) {
console.log("#" + projects[i].id + ": " + projects[i].name + ", path: " + projects[i].path + ", default_branch: " + projects[i].default_branch + ", private: " + projects[i]["private"] + ", owner: " + projects[i].owner.name + " (" + projects[i].owner.email + "), date: " + projects[i].created_at);


See Examples directory for more examples

Develop

Gitter chat

Edit the Coffee-Script files in src, then build them using cake build. Use cake watch to build files continuously while developing.

CLI

Check out cli-gitlab

Contributors
License

MIT

Changelog

master (unreleased)

Full commits list

1.7.1 (2016-08-04)

Full commits list

1.7.0 (2016-07-11)

Full commits list

1.6.0 (2016-05-10)

Full commits list

1.5.0 (2015-11-26)

Thanks to @peteward44, @Sewdn, @ryansouthern and @geeeeeeeeek

Full commits list

1.4.1 (2015-08-11)
1.4.0 (2015-08-11)

Thanks to @huhgawz, @ConnorWeng, @langma, @spruce, @stevenorman and @nogs

Full commits list

1.3.0 (2015-02-09)

Full commits list

1.2.0 (2014-12-24)

Full commits list

1.1.0 (2014-11-04)

Full commits list

1.0.0 (2014-08-19)
POC (2012-12-11)

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.