Skip to content

Instantly share code, notes, and snippets.

View Strajk's full-sized avatar
🐣
knock knock…

Pavel 'Strajk' Dolecek Strajk

🐣
knock knock…
View GitHub Profile
@Strajk
Strajk / gitlab.js
Created February 5, 2018 21:10
Gitlab with promises
const gitlab = require('gitlab')({
url: process.env.GITLAB_URL,
token: process.env.GITLAB_TOKEN
})
const promisifier = function (fn) {
return function (...args) {
return new Promise(resolve => {
args.push(resolve);
### Keybase proof
I hereby claim:
* I am strajk on github.
* I am strajk (https://keybase.io/strajk) on keybase.
* I have a public key whose fingerprint is 46DA FBBD E5AE 17AE D229 AB7D CF9A B872 DA89 EE02
To claim this, I am signing this object: