Giter Site home page Giter Site logo

Comments (10)

lindell avatar lindell commented on August 15, 2024

Expected behavior
support gitlab api v4

I think this is the opposite of what you think.
The library that multi-gitter uses seems to only support v4 as of 2017

Release v0.6.0 (released on 25-08-2017) no longer supports the older V3 GitLab API. If you need V3 support, please use the f-> api-v3 branch. This release contains some backwards incompatible changes that were needed to fully support the V4 GitLab API.

From: https://github.com/xanzy/go-gitlab

We do not intend to support the now very old v3 API.

Please confirm that this is the case so that this bug can be closed.

from multi-gitter.

lindell avatar lindell commented on August 15, 2024

@ccrstory Please read my last comment. The problem seems to be the opposite. Which GitLab version are you using?

from multi-gitter.

ccrstory avatar ccrstory commented on August 15, 2024

@ccrstory Please read my last comment. The problem seems to be the opposite. Which GitLab version are you using?

Gitlab version v16.5.8-ee

from multi-gitter.

ccrstory avatar ccrstory commented on August 15, 2024

Is it the GitLab instance that's making the request to v3? I'm not specifying it anywhere

from multi-gitter.

lindell avatar lindell commented on August 15, 2024

Hmm, you version is way more up to date compared to @zhxjdwh . It should have V4, could you provide what parameters you are using, and some logs resulting from it.

from multi-gitter.

ccrstory avatar ccrstory commented on August 15, 2024

multi-gitter run ./test.sh --log-level=trace --config=config.yml -m "test"
TRAC[0000] http request host=gitlab.test.com request="GET /api/v3/repos/e4/angular HTTP/1.1\r\nHost: gitlab.test.com\r\nUser-Agent: go-github/v59.0.0\r\nAccept: application/vnd.github.scarlet-witch-preview+json, application/vnd.github.mercy-preview+json, application/vnd.github.baptiste-preview+json, application/vnd.github.nebula-preview+json\r\nX-Github-Api-Version: 2022-11-28\r\nAccept-Encoding: gzip\r\n\r\n" response="HTTP/1.1 410 Gone\r\nContent-Length: 62\r\nCache-Control: no-cache\r\nConnection: keep-alive\r\nContent-Type: application/json\r\nDate: Wed, 29 May 2024 17:21:23 GMT\r\nServer: nginx\r\nVary: Origin\r\nX-Content-Type-Options: nosniff\r\nX-Frame-Options: SAMEORIGIN\r\nX-Gitlab-Meta: {"correlation_id":"01HZ2NXVDTMYB0GT8WK56K95N6","version":"1"}\r\nX-Request-Id: 01HZ2NXVDTMYB0GT8WK56K95N6\r\nX-Runtime: 0.011207\r\n\r\n{"error":"API V3 is no longer supported. Use API V4 instead."}" took=483.695274ms
could not fetch repositories: could not get information about e4/angular: GET https://gitlab.test.com/api/v3/repos/e4/angular: 410 []

from multi-gitter.

lindell avatar lindell commented on August 15, 2024

And what is in your config file.

It's strange that it uses a V3 url, since that was discontinued in the lib used years ago.

Might you not set the platform properly, and it is trying to use the GitHub API urls instead?

from multi-gitter.

ccrstory avatar ccrstory commented on August 15, 2024

base-url: https://gitlab.test.com/

branch: test-tag

repo:

  • e4/angular

token: **********

from multi-gitter.

lindell avatar lindell commented on August 15, 2024

It is using the endpoints from the GitHub API. Since GitHub is the default platform if none are set.
Add:

platform: gitlab

And it should work

from multi-gitter.

ccrstory avatar ccrstory commented on August 15, 2024

That worked thank you

from multi-gitter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.