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

c# Gitlab get api pagination

I wrote a method which calls to Gitlab API but I cannot get more than 47 projects. When I call this method like this: List projects = GetProject("/api/v4/projects?per_page=47").Result; List projects =…
aks
  • 13
  • 6
0
votes
1 answer

Assignee for issue not set on creation

I create a issue on GitLab like this(Python 3): user_id = int(11) gl_issue = requests.post( GITLAB_URL + '/api/v4/projects/%s/issues' % GITLAB_PROJECT_ID, headers={'PRIVATE-TOKEN': GITLAB_TOKEN,'SUDO':…
Alexander
  • 91
  • 3
  • 13
0
votes
1 answer

Gitlab API : Get project's Events with python

I'm coding a script in python and try to get EVENTS from a project with gitlab API. Here is the code : import gitlab # private token or personal token authentication gl = gitlab.Gitlab('https://gitlab.com/',…
0
votes
2 answers

Get gitlab parent project details in child project

I am using below two gitlab repository Parent Gitlab repo - Application code, for example - Angular application Child Gitlab repo - For Gitlab Pipeline, has only gitlab-ci.yml file which contain script to run pipeline I am calling…
Dan
  • 651
  • 1
  • 14
  • 31
0
votes
1 answer

Add optional button to edit commit message on Gitlab merge request

Is there any way how to add some "button" to discussion on merge request to update commit message? We are using second system to reading commit messages - in case commit message including #foo (it is optional) we will trigger some notification. So I…
nirebam368
  • 245
  • 4
  • 11
0
votes
1 answer

How to get (or create) tags at GitLab?

Gitlab version: 13.3.1 I user c# library github and try to create tags: var client = new GitLabClient("https://gitlab.domain.local/", "key"); var projects = await client.Projects.GetAsync(); var…
Admiral Land
  • 2,304
  • 7
  • 43
  • 81
0
votes
0 answers

How to GET request from PC to get list of all MR for my gitlab project

I am trying to get all of merge requests and generate a report out of it. When I am looking though documentation I do find a command for it here GET /projects/:ID/merge_requests?state=al But when I am using it in my terminal getting warning saying…
tp2376
  • 690
  • 1
  • 7
  • 23
0
votes
2 answers

Gitlab private token automatic rolling

I am trying to connect gitlab api from code to download artifacts. To do so, i'm required to generate a private access token and send it with the request. I don't want to set a permanent token because it is not secure, so i tried to find some api to…
Dana Koren
  • 33
  • 4
0
votes
1 answer

How do I get gitlab api to list the releases for my project?

curl command... > curl --header "PRIVATE-TOKEN: my-private-token" > "https://gitlab.com/gitlab-user-name/api/v4/projects/my-project-id/releases" response... You are being redirected. I am sure it is the wrong url but not sure how to correct…
user3755946
  • 804
  • 1
  • 10
  • 22
0
votes
0 answers

How can I suppress subsequent pipelines emails in Gitlab CI in case of a series of failed jobs?

I've got a pipeline that logs in and logs out off a web-application every 5 minutes to ensure that the apps backend works, the database is up... There occurred a problem that was not even related to the app directly, and my boss was bombarded with…
Jan and RESTless
  • 199
  • 1
  • 14
0
votes
2 answers

Trigger cross-project-pipelines for tags and manual jobs

Gitlab's cross-project-pipeline allows me to specify a branch to run a pipeline for. I didn't find any such option to do the same with a tag? Since my cross-project-pipeline is also being run deliberately, is it also possible to run all manual jobs…
masterforker
  • 2,443
  • 2
  • 25
  • 39
0
votes
1 answer

How to use curl to post a linting request with the contents of .gitlab-ci.yml to the gitlab api?

Trying to make a curl request to gitlab.com api for linting .gitlab-ci.yaml file but receiving bad request response: {"status":400,"error":"Bad Request"} #!/usr/bin/env bash PAYLOAD=$( cat << JSON {…
anon_dcs3spp
  • 2,342
  • 2
  • 28
  • 62
0
votes
1 answer

Deleting docker image tags from gitlab registry deletes retags of deleted tag

In the cleanup stage of my gitlab-ci pipeline im deleting the temporary docker tags that were generated before testing. The images are retagged in the publish stage. When deleting the original tag, the retag is also deleted. The stages are: build: …
als
  • 163
  • 10
0
votes
1 answer

git lab ci service connection refused

I have a docker image listed in my gitlab ci services list. When I make an htpp request using curl to my docker service url everything works fine. But when I run my tests which makes an http request using axios to the service docker image url it…
tsadkan yitbarek
  • 1,360
  • 2
  • 11
  • 28
0
votes
0 answers

429 Too many requests on gitlab-api

I have created a spring boot api and deployed it to my heroku app. My spring boot API is internally calling gitlab apis to get some data. Request URL for my API is…
Rohit Singh
  • 169
  • 2
  • 2
  • 9