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

Unable to initialize repo with readme when creating project on behalf of user #2869

Closed
@connelldave

Description

@connelldave

Description of the problem, including code/CLI snippet

When creating a project on behalf of useru as an admin,initialize_with_readme is ignored

In [32]:init_with_readme=TrueIn [33]:     ...:project_data= {    ...:"name":project_name,    ...:"namespace_id":group_id,    ...:"initialize_with_readme":init_with_readme,    ...:"visibility":"internal",    ...:         }In [34]:r=u.projects.create(project_data)In [35]:r.visibilityOut[35]:'internal'

I think this might be because the attr is not declared inusers.py like it is inprojects.py?

Looks like an extension of#765 in a different object?

Expected Behavior

Repo is initialized with a default readme

Actual Behavior

Repo is not initialized

Specifications

  • python-gitlab version: tested on 3.12.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com):v16.10.4-ee

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