* Add [Treeware] trees service
* Add tests for the [Treeware] tree service
* Update [Treeware] tree test to use package
* Update [Treeware] badge description
* Update [Treeware] test to remove timeout
* Update [Treeware] tree service to use queryParams
* Apply review comments to [Treeware] tests
* Update [Treeware] test to check colour
* allow resolve PHP version from jobs in Travis CI config
* get version from jobs
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Add pkgreview.dev services
* 🐛 FIX: Fix badges for pkgnames containing @ symbol
* 🐛 FIX: parseFloat the rating
* 🐛 FIX: Fix LGTM alerts
Alert: 2 for Incomplete string escaping or encoding
* Update services/pkgreview/package-rating.service.js
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com>
* 🐛 FIX: Rollback to Joi.number() temporarily
* 👌 IMPROVE: Follow guidelines properly.
Not completely done, yet.
* 🐛 FIX: Handle response timed out error
* 👌 IMPROVE: Merge star and rating badge logic
* 🐛 FIX: Fix according to the maintainer's review
* ✅ TEST: Write a test
* ✅ TEST: Write one more dummy test
* 👌 IMPROVE: Improve message color scheme. Add logic to it. use color-formatters.
* ✅ TEST: Complete Test Suitew
* 👌 IMPROVE: Make fixes according to the review
* ✅ TEST: Write nice tests
* ✅ TEST: Fix test regex
* 👌 IMPROVE: Do according to the review
* ✅ TEST: Fix test regex and don't test Bad Requested Badge
* ✅ TEST: Fix tests :)
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
* Add a test for #4640
* Set prerelease=false for /r/* Nexus 3 badges
* Fix the test following PR discussion
Co-authored-by: Pierre-Yves B. <PyvesDev@gmail.com>
* move getLatestRelease logic from [GitHubRelease] to common-fetch
- so that the sorting and prerelease logic can be used for other
services too, like commits-since
* add sort and prerelease query params to [GitHubCommitsSince]
- they only work when using the 'latest' version of course
- uses same logic as release service
* reuse queryParamSchema from common-fetch for [GitHubTag]
- as they were the exact same schema
* refactor [GitHubCommitsSince] tests to use withRegex
- and the same variable everywhere
* split out release/tag logic from common-fetch to common-release (affects [GitHubCommitsSince], [GitHubRelease], [GitHubTag])
- this logic is only used for code related to releases & tags, so made
sense as a split point
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
* Add [Docker] image size badge
* Add [Docker] version/tag badge
* [Docker] allow version badge to retrieve results from multiple pages
* [Docker] allow size badge to retrieve results from multiple pages
* [Docker] clean up size and version badges before squash
* [Docker] Size badge change API call to explicit tag
* [Docker] Conditionally include tag route param for badges
* [Docker] Implement feedback for size and version badges
* [Docker] Implement feedback round 2 for size and version badges
* [Docker] Optimise API lookups and remove date sorting on tag badge
* [Docker] Implement feedback round 3 for version badge
* [Docker] Implement feedback round 4 for version badge
* [Docker] Adjust unit and service tests for version badge
* [Docker] Move unit test data into fixtures
* [Docker] Fix Docker version badge route prefix
* [Docker] Add date and semver lookup for size badge
* [Docker] Implement feedback round 5 for version badge
* [Docker] Implement feedback round 6
* [Docker] Tweak error messaging for consistent wording
* [Docker] Adjust badge titles
* [Docker] Guard and treat images with missing digest
* [Docker] Guard and treat images with missing digest
* VisualStudioAppCenterBuilds
* [vsacb] Add schema, documentation and use buildStatus for rendering
* Add VSACReleasesVersion badge and test
* Make tests green again, add another nock test and fix category
* Add VSAC Releases Size badge and test
* Add VSAC Base class
* [vsacb] use base fetch function
* Add VSACR OSVersion service and tests
* Finishing touches
* Change slug from VSAC to Visual-Studio-App-Center
* Use prettyBytes for rendering
* CQ
* Use bytes response directly
* Remove superfluous required statement
* Improve os version badge format
* Switch to nock for build test
Co-authored-by: Pierre-Yves B. <PyvesDev@gmail.com>
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
* Add GitHub Lerna badge
* Add tests, rename class, rework base path, support independent tag
* Switch label to be 'lerna' in all cases
* Run Prettier
Co-authored-by: Pierre-Yves B. <PyvesDev@gmail.com>
* Support Azure DevOps badge on a specific stage or job
* Add samples
* Fix tests
* Restart CI
* Changes per @PyvesB review
Co-authored-by: Pierre-Yves B. <PyvesDev@gmail.com>
* Add [Repology] repositories badge
Partly addresses #929
* Replace JSON API with SVG scrape
* Fix failing tests
* Replace Joi.number with nonNegativeInteger
* Replace integer with string in failing test
* Update title to specify that the badge is for num of repositories
* Remove repology-repositories.spec.js
* Remove keywords
* Use the metric text formatter
* Remove mocked svg test
* Remove the "in" preposition
* feat(service): add AppVeyor Job status badge
* refactor: sync file/class/route names for appveyor job
* tests: update # of build services in frontend test
Co-authored-by: Pierre-Yves B. <PyvesDev@gmail.com>
* set followRedirect: false by default in tests
* update tests implicitly relying on redirects
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Response size metric for all services
* Unused code removed
* Test for service response size metric
* All buckes of the service_response_bytes in a comment
* Register parameter in PrometheusMetrics is optional
* service response size metric enabled for dynamic badges
* Better test name
* JSDoc removed
* One import from one file
* Gather metrics in the background
* Revert saving response time metrics in the background
* Convert remaining tests to use expectRedirect() helper
* convert last few redirect tests to use svg not json
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Subclass factory for JSON path services
* Common methods moved to JSON path class
* should throw error if _getData is not overridden
* Test JSON path factory using chai-as-promised
* Using chai-as-promised in more tests
* JSDoc for json-path
* Error message adopted to JSON and YAML
* Dynamic YAML badge handles YAML with a string
* 'fetch' naming covention
* Strict string validation in error message
* Packagist user/repo must be lowercase
An issue has developed recently where the package name and repo name of the packagist packages have an added requirement of being lowercase. This has broken the Shields.io badge for some of my projects where their repo name has capital letters, and the badges have been automatically added by a script.
* Prettier
* Lowercase user and repo in getPackageName function instead
* Lowercase user/repo in fetch function
* feat: add BaseSvgScraping service impl for GH Actions
* chore: fix GH Actions service test name
* feat: add branch support to GH Actions/Workflows
* chore: fix schema for GH actions
* refactor: update route path per PR discussion
* when the service responds with only warnings the spec is valid
* add transform method, move color selection to render
* replace forEach with every
* move file extension to query param
* add spec not found, moved url to query param, updated version of supported swagger, WIP redirector
* fix typo
* fix json redirect, add live tests, add redirecter tests
* fix naming, remove mocked test where live one exist