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
7
votes
1 answer

Gitlab: trigger manual action via API

I have a GitLab-CI pipeline stage that looks like this: test: stage: test script: - echo test when: manual I need to trigger this action via a GitLab API request. I've tried these solutions but they do not seem to work. curl --request…
matbot01
  • 85
  • 1
  • 8
7
votes
2 answers

Gitlab Api Commits Behind/Ahead Master

On the Gitlab webpage you have the possibility to check how many commits a branch is behind or ahead of the master branch. My question is if it is possible to get information about this with the "gitlab API"? I checked the docs but unfortunately…
Tessaiga
  • 71
  • 1
7
votes
2 answers

Download a single file from GitLab artifacts archive

I'm running GitLab CE 11.5.0, and one of my jobs produces an artifact from which I'd like to download a single file. Downloading the complete artifacts archive as zip file works as described here: $ export TOKEN="12345678" $ export…
otto.poellath
  • 4,129
  • 6
  • 45
  • 60
7
votes
5 answers

How to list a subgroup's projects using the GitLab API?

In GitLab you can create subgroups within a group and projects within those subgroups. The GitLab documentation allows you to list the subgroups of a group and the projects of a group, but I cannot find anything about listing projects of a subgroup.…
chacd
  • 131
  • 1
  • 4
7
votes
4 answers

How to remove all Gitlab repository?

I have created several repositories in GitLab.Now I want to delete or remove all repository at once. How can I do this? is there any API available?
Harsh Patel
  • 6,334
  • 10
  • 40
  • 73
7
votes
2 answers

GitLab API - How to GET the repository/project files and metadata?

I am new to GitLab and using API calls and am confused on how to make a call to get the repository/project files and metadata. My current API call is as follows: https://gitlab.com/api/v3/projects?private_token=privateToken privateToken at the end…
Doug Andres
  • 273
  • 3
  • 4
  • 11
7
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
  • 4,404
  • 4
  • 34
  • 40
7
votes
2 answers

Gitlab API filter all projects by tag

I was looking through the documentation on gitlab and couldn't find a way to filter out projects by tags. I do notice that if you go to the dashboard, then "Explore Projects", then "All", at the side "tags" appears which is a dropdown menu populated…
6
votes
1 answer

Use CURL response in GitLab CI Script

I try to get all badges of a certain GitLab project in .gitlab-ci.yaml and find out the id of a certain badge by name. I have the following script where I try to call the badges api with a curl and store the json result in a variable named…
Michi-2142
  • 1,170
  • 3
  • 18
  • 39
6
votes
1 answer

How do I retrieve all users from a GitLab deployment using the GraphQL interface?

I am trying to load user information from GitLab so that I can associate usernames with issues. When querying for issues, the assignee username is not directly available. Instead, a user ID is available. If I execute this GraphQL query using the…
Jean-Paul Calderone
  • 47,755
  • 6
  • 94
  • 122
6
votes
2 answers

How to get current job on runner in Gitlab

Is possible to get or track what current job is running at specific runner? For example. I have many projects and I want to tracking a runner_id=123. gitlab_api has api [url]/api/v4/runners/[runner_id] to get details of the runner=123. But the…
Mizugorou
  • 61
  • 4
6
votes
3 answers

Check scopes of personal access token from GitLab

How can I check the scopes (permissions) of a personal access token from GitLab? Given a personal access token, get all the scopes permitted to this token.
MOntu
  • 837
  • 1
  • 6
  • 8
6
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
  • 700
  • 5
  • 14
6
votes
1 answer

How to create a MR using GitLab API?

I am trying to create a merge request using the GitLab Merge Request API with python and the python requests package. This is a snippet of my code import requests, json MR = 'http://www.gitlab.com/api/v4/projects/317/merge_requests' id =…
Ali
  • 1,001
  • 2
  • 14
  • 32
6
votes
1 answer

Get MR related data from Gitlab API

How to: Get all commits in a particular Merge Request. Get all users who committed in a particular Merge Request. No. of lines added/deleted/updated by a particular user in a Merge Request. Can't find how to use Gitlab…
softvar
  • 17,917
  • 12
  • 55
  • 76
1
2
3
44 45