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
3
votes
2 answers

Gitlab-ci.yml to create merge reqeust

I have the following gitlab-ci.yml file running in DEV branch, with target as DEV as well. Since i couldnt point the TARGET as MASTER, there is no automatic MR getting created. I would like to know if its possible to create a merge request in the…
Yuva
  • 2,831
  • 7
  • 36
  • 60
3
votes
1 answer

How to see the user who called the Pipeline Trigger Job in the Gitlab CI?

I created with my user, one trigger in the Pipeline triggers of my project. I successfully executed the trigger and it appears on the job page. But since I want this trigger to be used by all developers on my team, I need to see who triggered the…
3
votes
2 answers

Is it possible to see who canceled the Gitlab pipeline?

I can see who creates the Gitlab pipeline/job, however, is it possible to see who canceled it? Even better to receive a notification if it was canceled by someone. As shown from the screenshot, the job is canceled, but not by me, and the output log…
Chuan
  • 3,103
  • 1
  • 19
  • 23
3
votes
1 answer

Gitlab validation using personal access token

I need to validate the personal access token for gitlab. I know we can use the https://gitlab.example.com/api/v4/projects?private_token= api to do so. But this api returns public projects when the private_token isn't specified. I am looking…
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
  • 28,885
  • 9
  • 68
  • 122
3
votes
0 answers

Gitlab api to revoke authorized applications

I'm following this link https://docs.gitlab.com/ee/api/oauth2.html#web-application-flow to use Oauth2 to authorize application. I succeed to get the access_token and access gitlab resource on user's behalf. But I cannot find any document to revoke…
Levi
  • 185
  • 2
  • 11
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
  • 13,139
  • 27
  • 98
  • 204
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
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
  • 787
  • 2
  • 8
  • 27
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
  • 502
  • 7
  • 26
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
  • 575
  • 2
  • 10
  • 29
3
votes
1 answer

C# how to get the JSON string by using HttpWebRequest

Anybody help me to get the JSON from the gitlab site. I have written my code but when I compile the code I receiving the exception The remote server returned an error: (401) Unauthorized. in my console application (C#). In my browser, I run the same…
user6874415
2
votes
0 answers

GitLab API PATCH request to update 'protected_branch' permission returns status '200' but data is not updated

For some reason I am unable to update access control on for a protected branch in GitLab. The PATCH request goes through with a status of '200' but the data is not updated. I have tried via Postman, CURL, and Python. Here is the python code: import…
Eric27710
  • 85
  • 1
  • 6
2
votes
1 answer

How to see which files are in packages in the package registry on GitLab using GitLab4J?

I've managed to get a connection to GitLab API working and I can see the available projects and their respective packages in the package registries. I'm having a problem understanding how to programatically see the files inside of a package, aka how…
Cydonia
  • 81
  • 5
2
votes
1 answer

How Do I Query GitLab (issues, milestones, etc) from within a GitLab Pipeline

Problem Summary I am creating my first GitLab pipeline and setting it up to do a release. I would like to add a change log to the published release information. (found in Deployments -> Releases in the GitLab UI). I would like to, from the…
treekong
  • 111
  • 6