cloudposse / bastion

🔒Secure Bastion implemented as Docker Container running Alpine Linux with Google Authenticator & DUO MFA support
https://cloudposse.com/accelerate
Apache License 2.0
643 stars 112 forks source link

Migrate readme yaml #20

Closed vadim-hleif closed 6 years ago

vadim-hleif commented 6 years ago

what

why

osterman commented 6 years ago

Aha, so this is why you want to thumbnail the profile pictures:

image

osterman commented 6 years ago

@vadim-hleif we should switch to using this URL format for github avatars: https://github.com/osterman.png?size=150

e.g. Erik Osterman

via: https://stackoverflow.com/questions/22932422/get-github-avatar-from-email-or-name

osterman commented 6 years ago

You can generate the contributors output this way:

# write JSON
curl https://api.github.com/repos/cloudposse/bastion/contributors | \
  jq '.[] | { github: .login, homepage: .html_url, avatar: ("https://github.com/" + .login + ".png?size=150"), name: "" }' > contributors.json
# convert to YAML
yq read contributors.json