Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
crondinini wants to merge3 commits intogithub:main
base:main
Choose a base branch
Loading
fromcrondinini:crondinini/add-create-repository-from-template

Conversation

crondinini
Copy link
Contributor

@crondininicrondinini commentedApr 11, 2025
edited
Loading

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:

  1. The requirements for template-based repository creation differ significantly from standard repository creation
  2. The Go GitHub client library itself uses distinct methods for these operations, reinforcing this separation of concerns

Video

Walkthrough of the tool being used in Cursor

walkthrough.mp4

vs0uz4 reacted with hooray emoji
@CopilotCopilotAI review requested due to automatic review settingsApril 11, 2025 20:25
Copy link
Contributor

@CopilotCopilotAI left a 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)

@crondininicrondinini changed the titlefeat: add create repo from templateAdd tool to create repository from templateApr 11, 2025
@crondininicrondininiforce-pushed thecrondinini/add-create-repository-from-template branch from432a0b5 toad12290CompareApril 16, 2025 09:39
@crondinini
Copy link
ContributorAuthor

Hi@SamMorrowDrums, I've rebased the branch with the latest tool arrangement changes that got merged last week.
Anything else I can do here to help review?
Thanks!

vs0uz4 reacted with rocket emoji

@crondininicrondinini requested a review froma team as acode ownerApril 29, 2025 19:02
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@juruenjuruenAwaiting requested review from juruen

@SamMorrowDrumsSamMorrowDrumsAwaiting requested review from SamMorrowDrums

@williammartinwilliammartinAwaiting requested review from williammartin

@tobytobyAwaiting requested review from toby

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@crondinini@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp