Use GitHub's built-in template repo system#1197
Closed
ebetancourt wants to merge 17 commits intofastapi:masterfrom
Closed
Use GitHub's built-in template repo system#1197ebetancourt wants to merge 17 commits intofastapi:masterfrom
ebetancourt wants to merge 17 commits intofastapi:masterfrom
Conversation
codespearhead
approved these changes
May 31, 2024
|
Hey! Is there any plan to actually enable template creation from this repo since it's actually a template? Cause it would be really nice to allow this out of the box for the new users of FastAPI and of the template. From what I see in this PR I don't think it should be merged as is:
But maybe one of the main maintainer could just update the docs to simplify/remove this section about making the repo private by simply ticking this "Template repository" option. |
Author
|
PR Open for over a year - its not really a code update, rather a suggestion. 🤷♂️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I love your project, but thought the process for using it as a template could be streamlined.
GitHub allows you to set a project up as a template with a single setting:
With just that, you get a "use this template" button in the top right of your repo. you can see it in my fork here: https://github.com/ebetancourt/full-stack-fastapi-template
This also allows the creation of a private repo based on the template.
I also added a GitHub action that runs once a day and checks the original template, and if there are any changes, it creates a PR against the project with the updates to the template
I know my screenshots don't quite fit your style (you don't have any call-outs and they are in dark mode, while yours are all in light mode) - if this is a feature you want to add, and you would like to merge my PR, I will happily update the images (and anything else!) to fit the needs of the project.
Oh, and of course, I would have to update the action to point to YOUR repo rather than my fork!