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

Support for IsTemplate and Create Template from Repository #2331

Merged
merged 4 commits into from
Jun 30, 2022
Merged

Support for IsTemplate and Create Template from Repository #2331

merged 4 commits into from
Jun 30, 2022

Conversation

JonruAlveus
Copy link
Collaborator

@JonruAlveus JonruAlveus commented Jun 4, 2021

Fixes #2148
Adding the ability to create repositories from a template. Most code borrowed from FrediKats PR 2187 but with fixed tests. Baptiste preview tag added to all repository endpoints mentioned in the GitHub Api documentation.

Further testing and IObservable code added to satisfy tests.

Chris Simpson added 3 commits June 4, 2021 11:35
…bility to create repositories from a template. Most code taken from FrediKats PR 2187 with fixed tests. Beptiste preview tag added to all repository endpoints mentioned in the GitHub Api documentation.
@JonruAlveus JonruAlveus changed the title [WIP] Support for IsTemplate and Create Template from Repository Support for IsTemplate and Create Template from Repository Jun 5, 2021
@tomkerkhove
Copy link

🙌

@JonruAlveus
Copy link
Collaborator Author

@shiftkey Please could you have a review of this pr?

Copy link
Member

@shiftkey shiftkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, just missing some docs for the new endpoint

/// </summary>
/// <param name="templateOwner">The owner of the template</param>
/// <param name="templateRepo">The name of the template</param>
/// <param name="newRepository"></param>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 please document this new parameter

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation added

/// </summary>
/// <param name="templateOwner">The organization or person who will owns the template</param>
/// <param name="templateRepo">The name of template repository to work from</param>
/// <param name="newRepository"></param>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 please document this new parameter

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation added

@ihorbond
Copy link

@shiftkey can we please merge this one ? much needed, thanks

@emmielewisbriggman
Copy link

emmielewisbriggman commented Jun 30, 2022

@shiftkey Will we ever get these changes? I'm waiting on this as well.

@JonruAlveus
Copy link
Collaborator Author

As a temporary workaround I’ve found that you can either get hold of the http client or there is a way to perform a Get directly in the client. So you can do the equivalent of this without having to code it all/wait for the pr. If anyone needs it I’ll try to find an example.

@shiftkey
Copy link
Member

I'm no longer a maintainer of this project, cc @nickfloyd for visibility

Copy link
Contributor

@nickfloyd nickfloyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @JonruAlveus, et. al apologize for the massive delay on this, and thank you for taking the time to make these changes. They all LGTM ✅ .

@nickfloyd nickfloyd merged commit f317f9d into octokit:main Jun 30, 2022
@nickfloyd
Copy link
Contributor

@JonruAlveus, @emmielewisbriggman, @ihorbond, and @tomkerkhove I'm planning on shipping this change tomorrow. Thank you for your contributions and your patience.

@emmielewisbriggman
Copy link

No problem. I am just using the API using httpclient for now.

@nickfloyd
Copy link
Contributor

release_notes: Adds support for IsTemplate and Create Template from Repository

@JonruAlveus JonruAlveus deleted the repository_templates branch July 1, 2022 20:27
@nickfloyd nickfloyd added Type: Feature New feature or request and removed category: feature labels Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

preview support for repository templates
6 participants