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?
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.
Activity
nejch commentedon Apr 7, 2020
Hi @Tiger-zzZ, this is quite late but there are two options:
--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.