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.

390 questions
3
votes
1 answer

How to download metadata.gz and job.log from GitLab API

I'm trying to script away downloading the three special files from our GitLab projects. Currently, I'm able to download artifacts.zip, and individual files from the zip, but not the other two special files: metadata.gz and job.log. Here's some stuff…
Josh
  • 568
  • 3
  • 12
3
votes
1 answer

gitlab: get all projects/groups of a member

I'm trying to find inactive members in my GitLab-CE instance via the Gitlab API (v4). One of the criteria for "(in)activity" is, whether a given user is member of any project or group. While this information seems to be readily available via the…
umläute
  • 23,410
  • 4
  • 50
  • 99
3
votes
2 answers

Can Gitlab expose build and coverage badges to anonymous users?

We are hosting some repository on GitHub, some other on GitLab. Sometimes, the package is published but not the source code. We always display build status and code coverage in README.md. Is there a way to have build and coverage badge on GitLab…
Dimitri Kopriwa
  • 8,478
  • 12
  • 70
  • 140
3
votes
1 answer

GitLab API - Unable to access file which is within a directory

I have a GitLab project which is set up as follows: myserver.com/SuperGroup/SubGroup/SubGroupProject The tree of the following project is a top-level txt file and a txt file within a directory. I get the tree from the GitLab API…
N.A.
  • 31
  • 5
3
votes
1 answer

How to disable GitLab project repository via API?

There is a possibility to disable project repository from GitLab Settings->Sharing and permissions->Project Visibility->Repository and then from menu choose "Disable" and "Save" at the end. How can I disable the repository via GitLab API -Java?
3
votes
0 answers

GitLab API Token is not visibile in Jenkins Credentials

After getting the private token from GitLab and trying to create credentials in Jenkins. The newly created credential is not visible in the dropdown. Creating the credential No Credentials are visible when opening the dropdown I am on Jenkins ver.…
Mohammad Haidar
  • 1,109
  • 1
  • 13
  • 33
3
votes
1 answer

What is my Gitlab domain for making API calls?

I feel reaaally silly for asking this but how do I know what my Gitlab domain is when all my projects are on Gitlab.com? Lets say, I want to do an API call to get all my projects - which is done like this according to the docs: curl --header…
Amposter
  • 685
  • 1
  • 8
  • 23
3
votes
1 answer

Where I can find the old docs of GitLab API?

On the main site of Gitlab API I cannot find any documentation for old v3 API version. Where it can be found?
blackhard
  • 353
  • 5
  • 21
3
votes
2 answers

Connecting IntelliJ Idea Servers to GitLab.com: what info is actually needed?

I'm trying to configure IntelliJ IDEA 2017.1.2 in order to get the tasks from a private repository on GitLab.com. To do that I have to create the corresponding entry in the Servers window. Now, I don't have the faintest idea about how I should fill…
danidemi
  • 3,354
  • 3
  • 30
  • 37
3
votes
1 answer

How to get the last commits status in a branch of GitLab projects?

I need to determine the latest commit status of each of my GitLab projects' branches using the GitLab API. I have referred to these links but I could not get the last commit's status details.
Karthi
  • 517
  • 2
  • 8
  • 23
2
votes
1 answer

Accessing Merge Settings via the GitLab API

I would like to view and perhaps change the merge settings in GitLab (see the screenshot). How do I do this via the API?
csgillespie
  • 54,386
  • 13
  • 138
  • 175
2
votes
1 answer

How to use `not` condition in the gitlab api issue query

I am trying to read the list of open issues title which doesn't have label resolved. For that I am referring the API documentation (https://docs.gitlab.com/ee/api/issues.html) which mentions NOT but I couldn't able to get the NOT to work. The…
BalaC
  • 55
  • 1
  • 7
2
votes
2 answers

Get à 401 Unauthorized when trying to lint my gitlab-ci.yml (version 13.8)

Since monday, I'm not able to use the lint CI API from gitlab, which is documented here https://docs.gitlab.com/ee/api/lint.html#validate-the-ci-yaml-configuration I'm working on a self hosted gitlab, and we updated gitlab to the last version…
Tako
  • 611
  • 11
  • 32
2
votes
2 answers

How to POST a note to an Issue and close this issue

I found an issue and get it's details with: GET https://localhost/api/v4/projects/2779/issues/2 I can add a new_comment to the issue by: POST https://localhost/api/v4/projects/2779/issues/2/notes?body=new_comment how to close this issue at once with…
simoNPL
  • 35
  • 5
2
votes
1 answer

In GitLab API, how do I set merge commit message for merge requests?

I have a few different CI/CD flows, one of them automatically creates GitLab merge requests for specific branches. Each merge request has a generated description and title, with links to resolved issues, etc. After merge request is merged, GitLab…
1 2
3
25 26