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
0 answers

Get 403 Forbidden when trying to connect Gitlab API by Laravel

I try to pull list of user's repository through Gitlab API by using Laravel. What I should do?
0
votes
1 answer

Gitlab API: Job is not retryable

I want to automate building and deploying of projects. In this regard, I want to use GItlab API to retry particular jobs in Gitlab Pipeline. The API call I make as follows: curl --request POST --header "PRIVATE-TOKEN: xxx"…
Padma Channal
  • 94
  • 1
  • 13
0
votes
1 answer

RestSharp POST Commit with GitLab-API

I am trying to send a Multifile commit to the GitLab API. I'm passing authorization and getting a BadRequest response. I've validated my JSON but I'm getting this in the response "{"error":"branch is missing, commit_message is missing, actions is…
interesting-name-here
  • 1,851
  • 1
  • 20
  • 33
0
votes
1 answer

Get project statistics from Gitlab API

I'm using Guzzle to access Gitlab's API, i'm trying to get my project statistics but i don't know where i should use the parameter "statistics". That's what i am doing so far: $client = new Client(['base_uri' => 'https://gitlab.com/']); $projects =…
Wuzi
  • 386
  • 7
  • 17
0
votes
1 answer

How to get list of pull requests using API in GitLab

I would like to know if there is any API available from Gitlab to get all pull requests details for a repository. I did search across gitlab documentation. But I couldn't find the proper API link. Please suggest. Best Regards Gowtham
Gowtham
  • 127
  • 1
  • 6
0
votes
1 answer

How to get the next page JSON string?

I used the API URL to get the JSON string in my browser. But I did some modification in my URL. So now I don`t know how to go for next page of JSON string!. I early use the URL http://gitlab.company.com/api/v3/users?per_page=100&page=1. In this URL…
user6874415
0
votes
1 answer

Gitlab API adding members to a project

I'm experiencing errors when trying to add users to a Gitlab project using the Gitlab API. I'm using Gitlab version 8.11.0 on CentOS 6.8 and I'm not sure if it is a bug or something I am doing wrong. The following works fine and gives me a list of…
jonny
  • 508
  • 5
  • 11
0
votes
2 answers

gitlab api fork projects as root

I am logged in as root using gitlab-api with Python. On the server, I have a git repository which consists of my template ( example ) code. This template code is however not under Adminstrator, but under my own namespace ( teacher/template) . I…
infoclogged
  • 3,641
  • 5
  • 32
  • 53
0
votes
1 answer

Http 404 when trying to get files with special characters from GitLab API

I am using python-gitlab driver for the Gitlab API. The following work fine on my repository: >>> rf_blob = p.repository_blob(p_latest_commit.id,…
Gobi Dasu
  • 459
  • 1
  • 6
  • 22
-1
votes
1 answer

Closing the merge request using gitlab api?

I am trying to close a merge request using gitlab's update merge request api (update mr) but its not working I am trying this curl --request PUT --header "PRIVATE-TOKEN: "…
ksb
  • 11
  • 2
-1
votes
1 answer

How can I use a PUT or POST request to set something as a list rather than a string (to the Gitlab API)?

I am just trying to set the labels of a GitLab merge request. When I make this PUT request to GitLab requests.put( https://gitlab.com/api/v4/projects/{}/merge_requests/{}".format(project_id, mr_num), {"labels":mr_new_labels},…
-1
votes
1 answer

Gitlab Status API: is too long (maximum is 255 characters)

I have an issue updating some projects Status in Gitlab via its API, I'm getting this body response: Response body: { "message" : { "target_url" : [ "is too long (maximum is 255 characters)" ] } } This update is done via a…
IrQus
  • 13
  • 3
-1
votes
2 answers

Azure DevOps push to GitLab

Within Azure DevOps I am trying to create a Command Line Script which is pushing the actual DevOps Repo to GitLab. git clone https://xxxx@dev.azure.com/xxxx/DBS/_git/xxx git remote add --mirror=fetch secondary…
Pirvu Georgian
  • 657
  • 1
  • 12
  • 37
-1
votes
1 answer

c# HttpResponseMessage - how to get X-Total-Pages from response and use it to get all results without pagination

Hello I'm using this to call to GitLab API: HttpResponseMessage response = await client.GetAsync(apiPath); In this response there is headers > results view > X-Total-Pages key value in visual How to get its value?
aks
  • 13
  • 6
-1
votes
1 answer

Rendering Gitlab API object as a list

I got this code, which pulls gitlab users from API. import React from 'react' import {PageHeader} from "antd"; import { Gitlab } from '@gitbeaker/browser'; const api = new Gitlab({ host: 'https://sample.com', token: 'asda', }); class…
Andy Vincent
  • 83
  • 1
  • 2
  • 11
1 2 3
44
45