Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
6543 opened this issue Apr 6, 2020 · 4 comments · Fixed by #19224
Closed

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

6543 opened this issue Apr 6, 2020 · 4 comments · Fixed by #19224
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them type/enhancement An improvement of existing functionality

Comments

@6543
Copy link
Member

6543 commented Apr 6, 2020

as title

related bug for this api: #10982

@MarkusAmshove
Copy link
Contributor

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.

@guillep2k guillep2k added modifies/api This PR adds API routes or modifies them type/enhancement An improvement of existing functionality labels Apr 8, 2020
@stale
Copy link

stale bot commented 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 stale bot added the issue/stale label Jun 7, 2020
@MarkusAmshove
Copy link
Contributor

Please no stale :-)

@stale stale bot removed the issue/stale label Jun 7, 2020
@zeripath zeripath changed the title [Feature] [API] Initialize Empy repo if repoCreateFile is used [Feature] [API] Initialize Empty repo if repoCreateFile is used Jun 7, 2020
@techknowlogick techknowlogick added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Jun 7, 2020
@s-nt-s
Copy link

s-nt-s commented 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?

zeripath added a commit to zeripath/gitea that referenced this issue Mar 26, 2022
This PR adds the necessary work to make it possible to create files on empty
repos using the API.

Fix go-gitea#10993

Signed-off-by: Andrew Thornton <art27@cantab.net>
6543 pushed a commit that referenced this issue Mar 28, 2022
This PR adds the necessary work to make it possible to create files on empty
repos using the API.

Fix #10993

Signed-off-by: Andrew Thornton <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants