[Feature] [API] Initialize Empty repo if repoCreateFile is used #5200

Closed
opened 2025-11-02 06:17:33 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @6543 on GitHub (Apr 6, 2020).

as title

related bug for this api: #10982

Originally created by @6543 on GitHub (Apr 6, 2020). as title related bug for this api: #10982
GiteaMirror added the issue/confirmedtype/enhancementmodifies/api labels 2025-11-02 06:17:33 -06:00
Author
Owner

@markusamshove commented on GitHub (Apr 7, 2020):

For context why this is interesting:

I want to fully script creating repositories in our company, including creating a branch, default README, branch protection and merge settings.

I can't initialize the repository with auto_init, because our commit messages need to follow a convention which is checked and rejected via hook.

With the repoCreateFile I can create the README, the branch (after this is implemented) and can use a custom commit message.

@markusamshove commented on GitHub (Apr 7, 2020): For context why this is interesting: I want to fully script creating repositories in our company, including creating a branch, default README, branch protection and merge settings. I can't initialize the repository with `auto_init`, because our commit messages need to follow a convention which is checked and rejected via hook. With the `repoCreateFile` I can create the README, the branch (after this is implemented) and can use a custom commit message.
Author
Owner

@stale[bot] commented on GitHub (Jun 7, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Jun 7, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@markusamshove commented on GitHub (Jun 7, 2020):

Please no stale :-)

@markusamshove commented on GitHub (Jun 7, 2020): Please no stale :-)
Author
Owner

@s-nt-s commented on GitHub (Mar 16, 2022):

I have the same problem

For context why this is interesting:

I want to fully script creating repositories in our company, including creating a branch, default README, branch protection and merge settings.

I can't initialize the repository with auto_init, because our commit messages need to follow a convention which is checked and rejected via hook.

With the repoCreateFile I can create the README, the branch (after this is implemented) and can use a custom commit message.

@MarkusAmshove, Did you find any solution for this?

@s-nt-s commented on GitHub (Mar 16, 2022): I have the same problem > For context why this is interesting: > > I want to fully script creating repositories in our company, including creating a branch, default README, branch protection and merge settings. > > I can't initialize the repository with `auto_init`, because our commit messages need to follow a convention which is checked and rejected via hook. > > With the `repoCreateFile` I can create the README, the branch (after this is implemented) and can use a custom commit message. @MarkusAmshove, Did you find any solution for this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5200