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

GitLab v4 API update file with Google Apps Script

I am trying to update a certain file in my GitLab repo using the v4 API and Google Apps Script. As we can see here, the payload have to be inserted in the url. This is where problem begins, Google Apps Script throws an error like this: Limit…
Daniel Turuș
  • 596
  • 6
  • 19
0
votes
1 answer

can I get the code lines containing specified words with git api

I want to get all code lines which contains specified words like orderInfo in git.xxx.com. And I read gitlab api document and it seemed I can get only the projects which contains specified word. This is my expected output: xxx orderInfo[]..... yyy…
nail fei
  • 2,179
  • 3
  • 16
  • 36
0
votes
1 answer

how to commit a update via gitlab api?

I wanna do some gitlab operation via python and gitlab-api. there is only one file called pg.py in my repository. url = 'http://xx.xx.xx.xx/api/v3/projects/4/repository/commits' data = {"id":4, "branch_name":"master","commit_message":"commit via…
R wang
  • 166
  • 12
0
votes
1 answer

How to run Save-GitLabAPIConfiguration from PSGitLab 2.7.0

I'm trying to use this package to automate some GitLab processes with PowerShell. https://www.powershellgallery.com/packages/PSGitLab/2.7.0 For my first test, I just ran this: Get-GitLabUser -ID "myuser" and got this output; then tried to run…
NealWalters
  • 17,197
  • 42
  • 141
  • 251
0
votes
1 answer

Disable password reset on login when changing password through Gitlab API

I've configured Gitlab CE 10.6 with OmniAuth and a CAS server that authenticates against two Active Directories and a users db. The login process is working fine to make the automatic signup, etc... now, i've been asked to synchronize the password…
0
votes
1 answer

Creating files in gitlab via api fails

I have admin token with all privileges but when I am trying to create files via api I am getting this message: You are not allowed to push into this branch. I checked and this repository master branch is not protected, I wonder what could be the…
Sławosz
  • 11,187
  • 15
  • 73
  • 106
0
votes
0 answers

gitlab checkout and status using Personal Access Tokens

I am writing a php application that will need to commit and check status of files on a gitlab repository. my application asks the user to create the personal Access Token on gitlab All good so far. I am using curl to run git commands and I am able…
Anand
  • 4,182
  • 6
  • 42
  • 54
0
votes
1 answer

GitLab API To Access File Storage?

In GitLab; Groups and User avatars, Logos are saved as System files. https://docs.gitlab.com/ee/development/file_storage.html Is there any API available to access them? Example Use case In a rest response of my app, I got: "avatar_url":…
Tharaka Deshan
  • 1,349
  • 3
  • 15
  • 30
0
votes
1 answer

How to validate the gitlab user mail ID and password with admin token?

We created to tool for update the comment in commit page. For that, I create a personal access token by using user given mail ID (using in gitlab). Now I use that personal access token I update the comment. Now I need to confirm the user`s mail ID…
Arunkumar
  • 73
  • 1
  • 11
0
votes
2 answers

Connect to gitlab using Java's Gitlab API

I want to identify which modified files and branch are related to a specific hash code. So, I am trying to use the Java's GitLabAPI (Java's Gitlab API) for this. My question is Which path to use to make this implementation. I took a look on the…
cns_
  • 1
  • 4
0
votes
1 answer

npm Gitlab - use of url and token

I am currently trying to use the gitlab module to connect to my gitlab repository but I find the documentation of gitlab too vague to reproduce. The documentation is provided here: First of all, they say to connect to gitlab you have to do the…
mikasa
  • 783
  • 1
  • 11
  • 29
0
votes
1 answer

How can I set the list of approuver for a merge request?

I am wondering how to set for a MR the list of approuvers by using the API (in EE). I could not find the information in the documentation :(
poussma
  • 7,033
  • 3
  • 43
  • 68
0
votes
1 answer

Retrofit2 and baseurl in GitLap

I am trying to learn retrofit2 by showing my project's GitLab name into recyclerView . but I can not find what is exactly what to do!!! according gitlab wiki I found private-tokens and list of projrct. this is my baseUrl and I create a…
sayres
  • 361
  • 1
  • 4
  • 15
0
votes
1 answer

Guidance on getting the Python Gitlab file upload sample to work

The following code sample is a modified version of what's found in the documentation at: http://python-gitlab.readthedocs.io/en/stable/gl_objects/projects.html#file-uploads. If you receive an AttributeError with a single key 'upload_file'. Then…
0
votes
1 answer

gitlab api get issue including time_stats

when I pull issues with a private token I'm getting everything but the time_stats with the issues. api/v4/issues Do I need some special queries for that? Thanks
Han Che
  • 8,239
  • 19
  • 70
  • 116