* send X-GitHub-Api-Version when calling GitHub v3 API
* TODO: invesitgate
* read baseUrl from config.service.baseUri
* add workflow to check for new GH api releases on schedule
* format config/default.yml to match yaml.dump() format
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* switch from github workflows to github actions workflows
* update github actions workflow badge to use api
* add test case for missing branch param
* custom deprecation message
* add schema and fetch method to service class
* add transform, render and handle method to service class
* add documentation and examples
* add tester
* add suggeseted changes
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Add github-gist-last-commit.service.js
* Still having difficulty with the reponse in the test file for github-gist-last-commit being in svg format, rather than json
* Yay, tests are greeeeen, the best sight for sore eyes xD
* Apply suggestions from code review - destructuring+rename and path change
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
* Removed the unnecessary test from github-gist-last-commit
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
* Modify github-size.service.js
* Add tests for Github Size Service to test the new ref parameter
* Modified request for a file size: ref is now sent only if if was specified
* fix: Use graphQL for github file count badges
* Add test for repo not found and update transform tests
* Fix extensions in transform test
* Mark type and extension as required
* Simpler type transform since only file, dir supported
* Added milestone property to GitHub issue details service
* Fixed case when no milestone is available
* fixing unit test
* fixed service test for milestone property
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* expose fetchLimitBytes/userAgent in got-config module
* export a function not a factory
* send better user-agent values
- add userAgentBase setting
- send short SHA in user agent on heroku
- set a version (tag or short SHA) in Dockefile and use
it to report server version in UA for docker users
* add a comment explaining fileSize
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* migrate github badges to use got instead of request
* simplify creation of requestFetcher in libraries.io base
* improve libraries.io connection error test
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* refactor: add render helper for downloads badges
* refactor: use new helper in some download badge classes
* doc renderer function
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* feat: support using release or tag name in GitHubRelease version badge
* add comment to query param test
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>