You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
The text was updated successfully, but these errors were encountered:
If you need specific content, as shown in your post above with --content 'your content', then I think your approach makes sense. The GitLab API (or UI) does not provide a way to already provide the content of the readme when creating projects with READMEs initialized.
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
The text was updated successfully, but these errors were encountered: