* Use GitHub API to find readme filename
* Fix lint errors and typos
* Bring back "tries to find" instead of "finds"
* Rename `readmeURL` to `apiURL`
* Don't close body
* Use GitLab API to find readme filename
* feat: improve gitlab/github readme url
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: danielwerg <35052399+danielwerg@users.noreply.github.com>
* fix: check other possible readme paths/branches
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
* fix: url
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
* fix: Readme.md
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
When passing a valid GitHub URL instead of a filename to gold,
it will fetch either README.md or README (in that order) from
GitHub and displays the markdown content.
Example:
./gold -s dark.json https://github.com/muesli/beehive