* add docstrings for contributor-count service
* add docstrings for deprecation-helper service
* remove deprecation-helpers service as it is not used anywhere
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* add docstrings for color formatter service
* add module description for build status service
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* 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>
* never check for 'require' key in [packagist] /v badge
always use `schema`
closes#7779
* accept str '__unset' for 'require' key in [packagist] /php-v badge
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* add a pub publisher badge
* use a real publisher name in the badge example
* update based on review comments
* Apply suggestions from code review
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
* run js prettier
* use the render() method in the example
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* added support for TAS application
* Added prod url. Fixed test-case
* fixed label
* updated tests
* streamlining of test badge
* mock test cases
* updated tests to make it live
* updated schema validation
* updated example
Co-authored-by: Saurabh Prakash <saurabhp@lambdatest.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Update Packagist service to use v2 api
Packagist deprecated the original `packagist.org/p/username/package` endpoint in favor of v2 `packagist.org/p2/username/package` endpoint. Because of this, new packages aren't being found using v1.
This PR updates the Packagist service to use the new endpoint.
* Adjust validation schema
Some packages don't return the same data structure as others with the new api endpoints. This changes the validation schema to account for the potential differences.
* Fix typo
* Throw NotFound when license not found
* Expand response and find the correct release
* Address issues raised by reviewer
Address issues raised by @chris48s in #6508, which this PR is base on.
Includes:
* Remove getDefaultBranch() from base class for it is no longer used.
* Change try-catch statement syntax to align code style.
* Rename findRelease() to findLatestRelease() for clarity.
* remove unusued param
* throw if no version found
* require version key
* use a single consistent method for identifying the latest (tagged) release
* don't throw in render()
* rename method (this is not really 'transform' in our usual parlance)
* Improve BasePackagistService testing
* Change BasePackagistService.decompressResponse to static
method BasePackagistService.expandPackageVersions.
* Fix expandPackageVersions implementation.
* Add unit test for the function.
* Extend BasePackagistService.findLatestRelease
* extend BasePackagistService.findLatestRelease to also handle
PackagistVersion.
* remove PackagistVersion.transform.
* Improve BasePackagistService.findLatestRelease
* Update findLatestRelease to throw NotFound itself.
* Update PackagistLicense and PackagistVersion and remove the
NotFound throwing logics.
* Revert unneeded change
* Corrected packagist php version spec
* The test was on a false assumption that '__unset' might appear
inside an array leaf while the composer's MetadataMinifier::minify
never does thing recursively. The '__unset' should be value of the
top level key.
Co-authored-by: Geoff Selby <geoff@geoffcodesthings.com>
Co-authored-by: Koala Yeung <koalay@gmail.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Add [Conan] version service
* Rework to use conan-center-index GitHub repo
* Conditional mock based on presence of github token
* Refactor yaml parsing into a helper function, move tests to .spec.js
* remove custom version parsing
* improve test data
* updates from review
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
When documentation for a crate is rebuilt the `builds.json` can return
multiple results, ordered latest first, so we must take the first
element of the array rather than the last.
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>