Comments (9)
Promise way
Require node >= 0.11.13
or bluebird:
var gitlab = require('node-gitlab');
var client = gitlab.createPromise({
api: 'https://gitlab.com/api/v3',
privateToken: 'your private token'
});
client.milestones.list({id: 1})
.then(function (milestones) {
console.log(milestones);
})
.catch(function (err) {
throw err;
});
from gitlab.
it easy to support promise
from gitlab.
@exuperok I will impl the promise today.
from gitlab.
Hello thank you for taking my suggestion into consideration, i am new to node.js, so i didn't know how much time it would take to do this, i've been struggling with this issue for a day and couldn't find an elegant solution.
from gitlab.
I will publish a promisify module like co-gitlab
from gitlab.
Wow thank you, in case you're curious i am using node-gitlab, to build a little node worker that synchronizes branches of a project with jenkins job... basically it creates a jenkins job for every branch in gitlab project and delete jobs for every branch deleted in that same gitlab project etc... the gitlab part is handled by node-gitlab...
from gitlab.
the co in co-gitlab stands for?
from gitlab.
https://github.com/visionmedia/co
from gitlab.
Hello thank you for the implementation i will test that right away.
from gitlab.
Related Issues (20)
- Support to create hooks with SSL verification disabled
- Acesss all projects by admin
- Replace native-or-bluebird with any-promise HOT 1
- Merge request bad URL HOT 1
- namespaces()
- Promises don't seem to work HOT 5
- Please support commit multiple files API method :) HOT 1
- Running tests on own/custom repo? HOT 3
- Add support for Runners
- Add support for Contributors HOT 2
- Is there a possibility to set header?
- remounitng issue
- Client side usage
- How to update the content of gitlab repository file with encoding utf-8 HOT 1
- Protected branches Error
- Support for GitLab api v4 HOT 4
- import not work on Meteor JS? HOT 1
- Enquiry about RepositoryFiles section from the node-gitlab package HOT 1
- How to fetch + merge?
- How to delete an issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlab.