8000 How to create a job with init README? · Issue #765 · python-gitlab/python-gitlab · GitHub
[go: up one dir, main page]

Skip to content
10000
How to create a job with init README? #765
Closed
@Tiger-zzZ

Description

@Tiger-zzZ

Description of the problem, including code/CLI snippet

I want to use gitlab project create ... to create a job and Initialize repository with a README,
but there is no options.
gitlab api https://docs.gitlab.com/ee/api/projects.html#create-project in create job has option initialize_with_readme.
in the last i use this command create README .gitlab project-file create --project-id $(shell cat REPO_INFO | grep 'id' | sed 's/^id: //g') --file-path README.md --branch master --content '# makefile-init' --commit-message init-with-makefile
if there has better choice?

Expected Behavior

Actual Behavior

Specifications

  • python-gitlab version:
  • API version you are using (v3/v4):
  • Gitlab server version (or gitlab.com):

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0