
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
gitlab-olalonde
Advanced tools
GitLab API Nodejs library. It wraps the HTTP api library described here.
Maintained by Manfred Touron and Dave Irvine
# Install from npm
npm install gitlab
URL to your GitLab instance should not include /api/v3
path.
# Connection
gitlab = (require 'gitlab')
url: 'http://example.com'
token: 'abcdefghij123456'
# Listing users
gitlab.users.all (users) ->
console.log "##{user.id}: #{user.email}, #{user.name}, #{user.created_at}" for user in users
# Listing projects
gitlab.projects.all (projects) ->
for 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}"
// Connection
var gitlab = require('gitlab')({
url: 'http://example.com',
token: 'abcdefghij123456'
});
// Listing users
gitlab.users.all(function(users) {
for (var i = 0; i < users.length; i++) {
console.log("#" + users[i].id + ": " + users[i].email + ", " + users[i].name + ", " + users[i].created_at);
}
});
// Listing projects
gitlab.projects.all(function(projects) {
for (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
42.0.0 (Tue Dec 31 2024)
:tada: This release contains work from a new contributor! :tada:
Thank you, Talysson de Oliveira Cassiano (@talyssonoc), for all your work!
@gitbeaker/core
@gitbeaker/core
@gitbeaker/core
internal
option to MergeRequestNotes.create
#3670 (@jdalrymple)FAQs
GitLab API Nodejs library.
We found that gitlab-olalonde demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.