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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
GitLab API Nodejs library. It wraps the HTTP api library described here.
Maintained by Manfred Touron and Dave Irvine
stall from npm
install gitlab
URL to your GitLab instance should not include /api/v3
path.
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}"
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
Edit the Coffee-Script files in src
, then build them using cake build
.
Use cake watch
to build files continuously while developing.
Check out cli-gitlab
MIT
Project.edit
Projects.create_for_user
Thanks to @peteward44, @Sewdn, @ryansouthern and @geeeeeeeeek
Groups.create
, Groups.addProject
and Groups.search
methodsProjects.remove
and Projects.search
methodsUserKeys
resourceUsers.search
methodProjectMielstones.get
to ProjectMilestones.all
.all()
methodsThanks to @huhgawz, @ConnorWeng, @langma, @spruce, @stevenorman and @nogs