Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Validate existing ci yml seems to be not implemented #3260

Open
@gridranger

Description

@gridranger

Description of the problem, including code/CLI snippet

It seems thatexisting config validation is not implemented (at least I haven't found it in the source code), but thedocumentation doesn't say it explicitly.

While this curl call works:

$ curl --header"Private-Token:${MY_CI_TOKEN}" https://${MY_GITLAB_HOST}/api/v4/projects/${MY_PROJECT_ID}/ci/lint?content_ref=${MYREF}

This code doesn't:

fromgitlabimportGitlabg=Gitlab(my_gitlab_host,private_token=my_ci_token)p=g.projects.get(my_project_id)p.ci_lint.validate({"content_ref":myref})

Expected Behavior

If I pass onlycontent_ref instead ofcontent, the same GET would be called as in the curl above according to theGitLab documentation.

Actual Behavior

It executesnew config validation as specifiedhere, sends a POST call, then throwsAttributeError: Missing attributes: content

Specifications

  • python-gitlab version: v6.3.0
  • Gitlab server version (or gitlab.com): v14.7.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp