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

Add support for Template Repositories API #1133

Merged
merged 10 commits into from
Jul 20, 2019
Merged

Add support for Template Repositories API #1133

merged 10 commits into from
Jul 20, 2019

Conversation

EricPickup
Copy link

@EricPickup EricPickup commented Jul 12, 2019

Template Repositories is a feature shipped last month that allows you to designate a repository as a template, and allows others to create a clone of that template repository.

The preview (not sure if I should link here since it's internal) was recently released for our REST api.

This PR adds the ability to do the following with Octokit:

  • Use a template repository to generate a new repository
  • Viewing whether a repository is a template
  • Creating a template repository
  • Updating a repository to change whether or not it's a template

(closes github-education-resources/classroom#1941)

Copy link
Member

@tarebyte tarebyte left a comment

Choose a reason for hiding this comment

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

Looking good so far @EricPickup

Let me know if you have questions about my feedback.

lib/octokit/client/repositories.rb Outdated Show resolved Hide resolved
lib/octokit/client/repositories.rb Outdated Show resolved Hide resolved
lib/octokit/client/repositories.rb Outdated Show resolved Hide resolved
lib/octokit/client/repositories.rb Outdated Show resolved Hide resolved
Copy link
Member

@tarebyte tarebyte left a comment

Choose a reason for hiding this comment

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

🍰

lib/octokit/client/repositories.rb Outdated Show resolved Hide resolved
lib/octokit/client/repositories.rb Outdated Show resolved Hide resolved
lib/octokit/client/repositories.rb Outdated Show resolved Hide resolved
@EricPickup
Copy link
Author

@tarebyte looks like CI failed from a flaky test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Octokit with ability to clone template repos
2 participants