Giter Site home page Giter Site logo

gitlab's People

Contributors

adtaylor avatar codelenny avatar dcolens avatar dead-horse avatar der-on avatar fengmk2 avatar ledsun avatar npmmirror avatar selvagsz avatar svvac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gitlab's Issues

Replace native-or-bluebird with any-promise

Thanks in advance for that great library!

But when I install it via

npm install node-gitlab

I always get the warning, that the used module native-or-bluebird is deprecated and should be replaced with the module any-promise.

Ability for query params

Mostly used for issues, being able to use query params is important. Being able to search for open/closed, labels, milestones etc

Running tests on own/custom repo?

Seem to get unauthorized access error. How can I set it up to run tests on my own test repo?
Thanks. Trying to add some of the latest API methods, such as commitActions

Client side usage

Hi I need to move some project to gitlab and I'm looking for good library to use it from javascript. This library looks pretty complete, thanks for building and sharing this!
Is there any (known) obstacle to browserify this library? Thanks in advance for any reply!

Enquiry about RepositoryFiles section from the node-gitlab package

Hi!
I use node-gitlab package (Gitlab API Node.js client) in order to get a file from a gitlab repository . I followed what exists in the official documentation concerning this one (https://www.npmjs.com/package/node-gitlab) and I tried this function (see the capture below) but I received this error during the execution.
Any idea about how to resolve this?
Thanks in advance!

Here is the code that I tried:
Capture

The result that I supposed to get:
Capture1

The output:
Capture2

The function :
Capture3

Docs

Awesome work so far.

Some documentation would be nice. I'll be happy to help.

import not work on Meteor JS?

I base on Meteor JS.

// server method
var gitlab = require('node-gitlab') // don't work
import gitlab from 'node-gitlab' // don't work
..........

Got error

TypeError: fs.readFileSync is not a function
    at eval (/node_modules/urllib/lib/urllib.js:37)
    at dynamic-import.js?hash=6e5870d62f7cbec7d534040d41bfc3a553f07bbd:138
    at fileEvaluate (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:346)
    at Module.require (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:248)
    at require (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:268)
    at eval (/node_modules/urllib/index.js:9)
    at dynamic-import.js?hash=6e5870d62f7cbec7d534040d41bfc3a553f07bbd:138
    at fileEvaluate (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:346)
    at Module.require (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:248)
    at require (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:268)

Support for pagination

Hej folks,

I'm using this awesome wrapper for the GitLab API and was wondering the other day, why there are projects missing when using gitlab.projects.list.

After some research I've seen, that GitLab uses a pagination via Link headers and was wondering how to set them.

Are you up for a PR, which allows the user to set a default per_page? (GitLabs default is 20)

Also how would you like the pagination? I see no way without breaking backward compatibility here, as you're passing the actual content array and not a "wrapper with meta-information" e.g.:

yield gitlab.projects.list();

{
  page: 1,
  perPage: 30,
  content: [...]
}

EDIT: I've found out so far, that I can use gitlab.projects.list({per_page: 30}), though it doesn't look that nice, especially when privateToken is in camel-case.
Also we don't get the feedback from headers whether there are more pages to request or not.

remounitng issue

I have hosted gitlab in ubuntu and my project repositories saved in external hard disk After unmounting external hard disk i need to reconfigure gitlab each and evrey repository in External HDD. Is it possible to save repositories permenently after remounting of external HDD.

namespaces()

I need namespace_id for projects.create.

To get info about namespaces, the info is at GET ${options.api}/namespaces. Where would be the best place to put this in the API?

How to fetch + merge?

I've been up and down the documentation, trying a few things but I can't seem to do a project pull request.
am I missing something or is this more for managing the git project remotely?

Thanks

Is there a possibility to set header?

Hi,
I was wondering if there is the possibility to set the sudo header for a specific request?

I would need this feature to be able to perform actions as another user.

Promises don't seem to work

In node v7.2.0, code like this works:

client.projects.list({}, (err, projects) => {
  if (err) throw err
  console.log(projects)
})

But with this:

client.projects.list({})
  .then(projects => console.log(projects))
  .catch(err => { throw err })

I get this error:

/Users/konsumer/Desktop/migrate-git/migrate.js:45
  .then(milestones => console.log(milestones))
  ^

TypeError: Cannot read property 'then' of undefined
    at Object.<anonymous> (/Users/konsumer/Desktop/migrate-git/migrate.js:45:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:420:7)
    at startup (bootstrap_node.js:139:9)
    at bootstrap_node.js:535:3

It seems like promises don't work with several others, as well.

Merge request bad URL

Hi,

I have an error while trying to merge a merge request.

{ Gitlab404Error: Unknow Error 404
    at Gitlab.RESTFulClient.handleResult (/home/ggrimbert/edevelo/local/Aurelia/projects-managing/node_modules/restful-client/lib/client.js:75:11)
    at /home/ggrimbert/edevelo/local/Aurelia/projects-managing/node_modules/restful-client/lib/client.js:133:10
    at done (/home/ggrimbert/edevelo/local/Aurelia/projects-managing/node_modules/urllib/lib/urllib.js:262:5)
    at /home/ggrimbert/edevelo/local/Aurelia/projects-managing/node_modules/urllib/lib/urllib.js:435:9
    at decodeContent (/home/ggrimbert/edevelo/local/Aurelia/projects-managing/node_modules/urllib/lib/urllib.js:310:14)

It appears that the url called to merge is /api/v3/projects/41/merge_requests/59/merge but it should be /api/v3/projects/41/merge_request/59/merge

How to delete an issue

Couldn't find it anywhere in the docs, but since I really needed it I did a little digging:
client.issues.remove({id, issue_id})
removes an issue (if your api_key has it least the authority project-owner)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.