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 organizations listed on GitHub with their location set to 'Toronto' #22

Open
RichardLitt opened this issue Jul 12, 2018 · 6 comments

Comments

@RichardLitt
Copy link
Member

There are 1000+ organizations on GitHub located in Toronto.. Some 113 of them have more than 25 repositories.

I want to be able to add these automatically. Adding .yaml files by end is exhausting, as is manually adding a ton of websites and data to the README by hand. Right now, my plan is to use GraphQL to get the data I want, and then to shim it into Markdown and ignore the YAML unless I can find an easy way to generate those, too.

Updates will be included in this thread.

@khos2ow
Copy link
Contributor

khos2ow commented Jul 14, 2018

hmm, considering GraphQL works as expected and you have some sort of control over items you're looping over, generating markdown files based on each item should be fairly simple.

  • generate base markdown with hugo new organizations/<name>.md
  • inject content inside, mostly with sed -i 's/.../.../g':
    • sed -i 's/description: ""/description: "<whatever you fetch from graphql>"/g'
    • and so on for name, website, etc.

@RichardLitt
Copy link
Member Author

That would be simple. Not a bad idea.

@smusali
Copy link

smusali commented Dec 9, 2018

I think, since @khos2ow implemented and his PR got merged, this issue can get closed, right, @RichardLitt?

@khos2ow
Copy link
Contributor

khos2ow commented Dec 10, 2018

@smusali technically no, my PR was implementing the functionality but this issue is to actually bring over the content (with that functionality).

@RichardLitt
Copy link
Member Author

@khos2ow Still interested in doing that work?

@khos2ow
Copy link
Contributor

khos2ow commented Feb 28, 2019

Sure, but I need to refresh my memory on this next week when I got back from vacation.

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

No branches or pull requests

3 participants