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

fix: Update getTemplatesFromGitHub to retrieve more repositories #4789

Merged
merged 4 commits into from
Jul 11, 2022

Conversation

maxcell
Copy link
Contributor

@maxcell maxcell commented Jul 11, 2022

Summary

Fixes #4777

When a user uses the CLI for generating a site with a template, we want to make sure only the appropriate repos show up for us. Right now that's all public, non-archived projects. The default limit is 30, so we also doubled the site request for now.


I wasn't quite sure if I should make a separate test for validating that the other repository do not show up but I modified the example at least so it should still pass other tests.

A picture of a cute animal (not mandatory, but encouraged)
cute little hedgehog peering into your heart

@maxcell maxcell requested a review from a team July 11, 2022 12:41
@maxcell maxcell changed the title Update getTemplatesFetch to retrieve more repositories Update getTemplatesFromGitHub to retrieve more repositories Jul 11, 2022
@maxcell maxcell added the type: chore work needed to keep the product and development running smoothly label Jul 11, 2022
@maxcell maxcell changed the title Update getTemplatesFromGitHub to retrieve more repositories chore: Update getTemplatesFromGitHub to retrieve more repositories Jul 11, 2022
Copy link
Contributor

@danez danez left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

Only one thing, this is not type chore, because you are actually fixing a bug for users. So when you merge make sure to use fix: ... in the squash commit message, so that it shows up in the changelog.

@danez danez added type: bug code to address defects in shipped code and removed type: chore work needed to keep the product and development running smoothly labels Jul 11, 2022
@danez danez changed the title chore: Update getTemplatesFromGitHub to retrieve more repositories fix: Update getTemplatesFromGitHub to retrieve more repositories Jul 11, 2022
@maxcell
Copy link
Contributor Author

maxcell commented Jul 11, 2022

I can do that! Thank you for the feedback @danez!

@maxcell maxcell added the automerge Add to Kodiak auto merge queue label Jul 11, 2022
@kodiakhq kodiakhq bot merged commit 3c0e7ee into netlify:main Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: command: sites automerge Add to Kodiak auto merge queue type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show all valid templates for sites:create-template
2 participants