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

how to retrive all commits of a special branch with gitlab api v4?

For example, my project id is 385, and I want to retrive all commits of branch 'V3.53.5' with gitlab api v4, the url is http://{ip}/api/v4/projects/385/repository/commits/?ref_name=V3.53.5&per_page=9999, the problem is that it only return some…
Crypto营长
  • 149
  • 3
  • 14
0
votes
1 answer

Gitlab - get env info for a project

I'm trying to get environment info given project id and environment id. I'm following Gitlab doc. Right now I'm able to get all environments by a project id with the following call: http://my_gitlab_url/gitlab/api/v4/projects/27/environments. I get…
esseara
  • 834
  • 5
  • 27
  • 47
0
votes
1 answer

How do I get the list of groups for a user through the Gitlab API

I see how to get the list of groups, and how to get the members of each, but is there no way to get the list of groups a user (not just me) is a member of? I'm using v4 of the API on 11.9.11-ee.
Jared
  • 1,887
  • 3
  • 20
  • 45
0
votes
1 answer

gitlab API gitlab4j Java change default branche

I'm using gitlab4jto change project default branch from master to dev with Java, I have authenticated changed the default branch but changes not saved GitLabApi gitLabApi = new GitLabApi("***", "mytoken"); List projects =…
helleye12
  • 1
  • 1
0
votes
1 answer

GitLab API - retrieve repository files

I have the following GitLab structure Project-X - Repository-1 - FileFoder-A - File-1 - File-2 - File-3 - Repository-2 - FileFoder-B - File-1 - File-2 -…
RPT
  • 728
  • 1
  • 10
  • 29
0
votes
1 answer

I can't get data from gitlab Graphql

I'm trying to make a graphql query but I can't retrieve the MergeRequests from a open repository. What am i doing wrong? { project(fullPath: "gitlab-org/gitlab-ce") { archived forksCount mergeRequests(last: 2) { edges { …
Malus
  • 39
  • 5
0
votes
1 answer

Add bulk of users in gitlab using gitlabapi

I am able to add a single user using Gitlabapi but, I need to add many users so Is there any possibility to add bulk of users at a time to Gitlab project using Gitlabapi. And while creating users, role and the group should be assigned as well. I am…
rajashekar
  • 609
  • 5
  • 19
0
votes
1 answer

GitLab API /issues_statistics returns 404

GitLab API /issues_statistics ( https://docs.gitlab.com/ee/api/issues_statistics.html ) for GitLab 11 on-prem returns 404. Is there any settings to enable it?
wiradikusuma
  • 1,930
  • 4
  • 28
  • 44
0
votes
1 answer

how to customize build trigger in GitLab

I am new in Gitlab, i would like to understand, do we have any specific place where i can define when my build should trigger? i saw few articles and stackoverflow answers like by default if im keeping my .yml file into the project root directory,…
Pavan
  • 115
  • 1
  • 4
  • 9
0
votes
1 answer

Adding webhook to project via CURLing Gitlab API

I'm attempting to add a webhook to a project on Gitlab. See docs I can GET current hooks from the project with the following command so I know I'm hitting gitlab successfully: curl -k --request GET --header "PRIVATE-TOKEN: "…
Yunter
  • 274
  • 3
  • 17
0
votes
1 answer

Create Release on GitLab with PowerShell

I try to create a powershell script which can help us to create a release on our private gitlab server. I found this tutorial How to create releases in GitLab? I'm not able to figure out how I can replace the curl command with the powershell…
bLuB
  • 1
  • 1
  • 1
0
votes
1 answer

Use project deploy token to access gitlab api

I want to read some files in one project existing in gitlab from the application via gitlab API. I create deploy token in the project through settings -> Repository -> Deploy Tokens. I then try…
Holm
  • 2,987
  • 3
  • 27
  • 48
0
votes
1 answer

How to get all the tags on a specific branch with GitLabAPI

I'm new to Gitlab API, I know how to create a tag on a specific branch, let's say I have several branches on my repository, and I created several tags on each branch. Now I want get all the tags on a specific branch with GitLabAPI. I've read the…
Crypto营长
  • 149
  • 3
  • 14
0
votes
1 answer

GitLab Pipeline trigger: rerun latest tagged pipeline

We have an app (let’s call it the main repo) on GitLab CE, that has a production build & deploy pipeline, which is only triggered when a tag is deployed. This is achieved in .gitlab-ci.yml via: only: - /^v.*$/ except: - branches We also have…
kano
  • 5,626
  • 3
  • 33
  • 48
0
votes
1 answer

GitLab: Project Not Found: Runs Fine Locally, Doesn't Work Deployed

We have an app that updates a gitlab project and pushes/commits to master. When I run locally, the program runs fine. When I run on the application hosted server (not the gitlab server), I get a 404 "Project not found". It's not the private access…
interesting-name-here
  • 1,851
  • 1
  • 20
  • 33