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

How do you handle - starter code is not a template repository?? #134

Open
lwasser opened this issue Nov 20, 2019 · 7 comments
Open

How do you handle - starter code is not a template repository?? #134

lwasser opened this issue Nov 20, 2019 · 7 comments
Assignees
Labels
enhancement New feature or request on-hold

Comments

@lwasser
Copy link

lwasser commented Nov 20, 2019

Screen Shot 2019-11-20 at 10 52 23 AM

Is this setting accessible from the github api? i'm guessing it may not be but worth looking or i can ask nathaniel? i'll email him now about it.

Screen Shot 2019-11-20 at 10 57 57 AM

@lwasser
Copy link
Author

lwasser commented Nov 20, 2019

UPDATE: Nathaniel told me that this feature is "under preview"
As it's a relatively new GitHub feature, the API is available under preview: https://developer.github.com/v3/repos/#edit

By using the preview header, you'll be able to edit a repository to be a template, create a new repo as a template, and check if a repository is a template. so it looks like we may be able to automate this step when we create a new template. NOTE this will only need to happen once.

@kcranston can you add this to the template functionality?

@kcranston
Copy link
Collaborator

kcranston commented Nov 20, 2019

Yes, we can do this. Two comments:

  • will have to call the API directly (i.e. using the requests library) rather than through the github3 library that we are using for other github interaction
  • preview functionality can change without notice, so we will need to be prepared for errors down the road if / when that happens

If you are ok with both of these, then I can go ahead and implement.

@lwasser
Copy link
Author

lwasser commented Nov 20, 2019

i read that @kcranston change without notice!! yikes. and i'm guessing that because it's preview, most other packages will be slow to adapt this until it's fully released?

@lwasser lwasser changed the title How do you handle - started code is not a template repository?? How do you handle - starter code is not a template repository?? Nov 20, 2019
@kcranston
Copy link
Collaborator

Here are the pros and cons of using template repositories for github classroom:

https://classroom.github.com/help/using-template-repos-for-assignments

@lwasser
Copy link
Author

lwasser commented Nov 20, 2019

let's hold on this for now until the api functionality has solidified

@lwasser lwasser added enhancement New feature or request on-hold labels Nov 20, 2019
@lwasser
Copy link
Author

lwasser commented Jan 28, 2021

If it is possible to automate this part of the process it's worth doing it. it's annoying to have to go into the repo and click t he button :) to turn on the repo as being a template. if it's not a template you can't push it to the students from what i can tell.

@lwasser
Copy link
Author

lwasser commented Jan 27, 2022

IF this is an easy code change as this is available in the API change we may implement otherwise we will discuss further what we'll do here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request on-hold
Projects
None yet
Development

No branches or pull requests

2 participants