Questions tagged [gitlab-api]

The GitLab API is the api for the GitLab Community Edition.

The GitLab API is the for the GitLab Community Edition, which is hosted on github. See for more information on GitLab.

The GitLab API offers numerous access and management resources, including the most common needed for effective :

Additional API resources are available to provide a rich source control environment. Full documentation can also be found in the GitLab API github repository.

663 questions
2
votes
2 answers

Download files through GitLab API that has been manually uploaded

We have a self-hosted GitLab server and are working on automating our builds and releases. We have many old releases that we have built before using GitLab CI. Some of these should be included in a release package for a certain software. The…
MrBerta
  • 2,457
  • 12
  • 24
2
votes
1 answer

How To Retrieve All Time Tracking Events from Gitlab API

I'm trying to query gitlab ce api v4 to get all time spend and time estimate events. Querying issues seems to only provide current total time stats. Does anyone know how to do this? My goal is to be able to get daily/weekly time stats for a group's…
Eric Gagnon
  • 81
  • 10
2
votes
1 answer

Can I upload a whole folder in gitlab repo via API?

Gitlab API Commit This I know but can't find an API to upload a whole folder containing various js, CSS and HTML files into gitlab repo.
Gaurav Kumar
  • 55
  • 15
2
votes
1 answer

Access Gitlab CE API from within CI Job without Personal Access Token?

There is a way to authenticate for calls to the Gitlab API from within CI Jobs with the CI_JOB_TOKEN variable, but this seems to only work on the Enterprise Edition Premium, neither Community Edition nor the Enterprise Edition Starter. Is there any…
muffel
  • 7,004
  • 8
  • 57
  • 98
2
votes
1 answer

GitLab API: How to PUT a large binary file as base64 together with other key=values

I need to use the Gitlab API to send a PUT-request with curl (v.7.35.0) that holds some key=value parameters. Key content needs to be a binary file content. So I need to send it as base64, but I already fail before. However the big file content…
djangonaut
  • 7,233
  • 5
  • 37
  • 52
2
votes
1 answer

What is the difference about installing GitLab between 'my server' and 'GitLab server'?

Recently, I need to management my code to use GitLab, but there is one question What is the difference about installing GitLab between 'my server' and 'GitLab server'? I guess for security..... but, GitLab be able to select unpublished my code to…
dokuem Lee
  • 27
  • 3
2
votes
1 answer

Fork project into group for a new contributor (API)

For the possibility that there is a better approach that I'm thinking about I would like to explain my requirement first (the question starts after the divider line). Given I have the following GitLab group structure: - main-group -…
Spenhouet
  • 6,556
  • 12
  • 51
  • 76
2
votes
1 answer

Gitlab: can I configure a served javascript file to be served as the client can execute it?

Version control repositories started to serve raw files as text/plain and to add the header content-type-options: nosniff so they can't be used as static hosting. I have an internal GitLab installation that I want to use to host some javascript (it…
neves
  • 33,186
  • 27
  • 159
  • 192
2
votes
1 answer

Access GitLab Plug-in's API Token from Jenkins Job

I have instances of Jenkins and GitLab which are successfully connected. Part of setting up the GitLab plug-in involves providing an API token. I believe this is used by the plug-in to get details of the commit which is triggering a job. I need to…
kdopen
  • 8,032
  • 7
  • 44
  • 52
2
votes
1 answer

Updating and committing file by using gitlab api

I want to update file content and commit it. To be able to achieve it, I looked the api of gitlab from the url; http://mygitlabadress/help/api/README.md It says Updating existing file is done…
mmu36478
  • 1,295
  • 4
  • 19
  • 40
2
votes
4 answers

What is the format of datetime in GET requests?

Some requests to GitLab API, like listing Merge Requests (https://docs.gitlab.com/ee/api/merge_requests.html#list-merge-requests) allow for URL query parameters of datetime type (created_after and created_before params for this particular…
mzywiol
  • 386
  • 1
  • 3
  • 11
2
votes
2 answers

Get project commits using node-gitlab api

Using node-gitlab API in NodeJS application, how can i get a project's list of commits. I could get the list of projects using: router.get('/projects', function(req, res, next) { gitlab.projects.all(function(projects) { res.json(projects); …
2
votes
1 answer

Download GitLab repository archive using GitLab API and Node.js

I would like to download (not clone) archive from my GitLab repository, but I get this error incorrect header check (Zlib._handle.onerror) This is my function: var fs = require('fs'); var url = require('url'); var https = require('https'); var…
quarky
  • 710
  • 2
  • 13
  • 36
2
votes
0 answers

Is it possible to get GitLab web editor through Gitlab API

My project is about configuration management. And I used Gitlab API for configuration version control. So, I want to make some web online editor that can edit some files in Gitlab's repository. Editor like this Can I get web editor component from…
2
votes
2 answers

How to fork a repository to a namespace using gitLab API

Currently we're still using gitLab with a single group for all teams. We need to switch from everyone using branches on one main repo to having forked repositories in different groups. We need to be able to -Automatically create a new group with the…
Dante
  • 548
  • 1
  • 7
  • 19