frontend-gitlab
GitLab api node module that does not require server side dependencies.
Usage
The goal is to make a very light weight set of functions to access the gitlab api.
There's a mix of focused requests and more broad custom functions. And you can use composition to use credentials over and over. So import only the ones that you need.
Here's a couple of examples:
;;
That will return promise that will resolve with a list of project issues.
A slightly more complicated example shows the value of composition:
;const projectIssues = ;//Return the closed issues//Return the open issues
You can also mix and match
;; const creds = ;;
In this case, all you need to do is pass the function along with its arguments and you only need to add the credentials once.
This is a work in progress, so there are very little prebuilt functions. However, you should be able to do anything you want by creating a custom request with a few inputs.
Just get the path for the request you are making, pass a request type if needed and then an object for the parameters.
const requester = ; // Default request type is GET // Omit the options object if a simple git request: { return } // POST or any other method can be specified
Everything returns a promise, so use as you would for any other request.