- Notifications
You must be signed in to change notification settings - Fork899
Add tool to create repository from template#229
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Add tool to create repository from template#229
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
pkg/github/repositories.go:454
- Consider ensuring that resp.Body is closed in all cases, including when an error is returned from CreateFromTemplate, to avoid potential resource leaks.
createdRepo, resp, err := client.Repositories.CreateFromTemplate(ctx, templateOwner, templateRepo, templateReq)
432a0b5
toad12290
CompareHi@SamMorrowDrums, I've rebased the branch with the latest tool arrangement changes that got merged last week. |
Uh oh!
There was an error while loading.Please reload this page.
Description
Adds a "Create Repository From Template" tool that follows the established pattern from the existing "Create Repository" tool. I did not find any existing issue to link here.
This functionality was implemented as a separate tool rather than extending the existing "Create Repository" tool for two main reasons:
Video
Walkthrough of the tool being used in Cursor
walkthrough.mp4