Commit Graph

1178 Commits

Author SHA1 Message Date
Prashant Rawat
d3f1a55503 Docstrings for contributor-count and deprecation-helpers services (#8003)
* 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>
2022-05-29 17:48:04 +00:00
Prashant Rawat
708dfb5f5f Add docstrings for color formatter service (#8000)
* 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>
2022-05-24 20:20:02 +01:00
Prashant Rawat
fd629a8d80 add docstrings for build-status service (#7999)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-05-22 14:41:21 +00:00
Alexander Wert
5b0777918a [GitHub] Added milestone property to GitHub issue details service (#7864)
* 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>
2022-05-21 00:53:27 +00:00
tooomm
fdb4e9bcfa [Flathub] Relabel new download badge (#7958)
* rename badge

* adjust test

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-05-14 14:36:55 +00:00
Axel Huebl
2558aec7de [Spack] Package Manager: Update Endpoint (#7957)
We transition our endpoints in Spack to a new location. This adjusts
the new JSON files that we can query for shields.
2022-05-13 00:12:15 +00:00
Marat Radchenko
327dc57e4a Update Chocolatey API endpoint URL (#7952)
Old API endpoint

1. returns bogus redirects for some reason
2. is no longer the Chocolatey Community Repository

Resolves #7931

See chocolatey/home#159
2022-05-11 15:57:45 +00:00
JakobDev
51ebba7e9e [Flathub]Add downloads badge (#7724)
* [Flathub]Add downloads badge

* Run prettier

Signed-off-by: JakobDev <jakobdev@gmx.de>

* Replace downloads_total with installs_total

Co-authored-by: chris48s <chris48s@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-05-11 01:02:38 +00:00
Richard Kuhnt
0e632291da Change lukesampson/scoop to ScoopInstaller/Scoop (#7933) 2022-05-09 17:37:07 -05:00
Jeevan Chandra Joshi
377a0362a7 add [PUB] points badge (#7918)
* add PUB points badge

* update PUB points badge

* update PUB points badge

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-05-08 13:51:42 +00:00
Jeevan Chandra Joshi
3e2c9b20e0 add [PUB] popularity badge (#7920)
* add PUB popularity badge

* update PUB popularity badge

* update PUB popularity badge

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-05-08 13:39:34 +00:00
Jeevan Chandra Joshi
3ac24d3aae add [PUB] likes badge (#7916)
* add PUB likes badge

* update PUB likes badge

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-05-05 19:23:28 +00:00
chris48s
f219e3cd19 fix [pub] service tests (#7921)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-05-03 15:00:32 +01:00
Rohan Khandelwal
482be064c1 [OSSFScorecard] Create scorecard badge service (#7687)
* security scorecards badge

* Create scorecards.yml

* Delete scorecards.yml

* api functional + color changing

* fixed test

* security scorecards badge

* Create scorecards.yml

* Delete scorecards.yml

* api functional + color changing

* fixed test

* Create scorecards.yml

* Delete scorecards.yml

* reverted package-lock

* renamed to ossf-scorecard + fixups

* fix packages

* renamed to OSSFScorecard

* reverted package-lock

* fixed dependencies

* force peer deps

* install force

* force install

* reset package lock

* pkg

* original package lock

* security scorecards badge

* Create scorecards.yml

* Delete scorecards.yml

* api functional + color changing

* fixed test

* Create scorecards.yml

* Delete scorecards.yml

* Create scorecards.yml

* Delete scorecards.yml

* renamed to ossf-scorecard + fixups

* renamed to OSSFScorecard

* pkg

* original package lock

* reset other files

* rerun tests

* fixed pkg err

* handle response errors

* 404 test, removed 500 err

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-04-23 18:59:26 +00:00
Paul Melnikow
4f219f1b92 Stringify [githublanguagecount] message (#7881) 2022-04-23 13:52:52 -05:00
Paul Melnikow
1fcc7e4b98 Stringify and trim whitespace from a few services (#7880) 2022-04-22 18:19:04 -04:00
Paul Melnikow
8b82e6d7fc Reclassify test for versionColorForWordpressVersion as an integration test (#7879)
This test requires hitting a web URL, and doesn't work offline, so it seems better classified as an integration test.
2022-04-22 18:14:33 -04:00
Caleb Cartwright
6ea690c446 fix: various sonar service tests (#7836)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-04-14 22:08:05 +00:00
Caleb Cartwright
9a8c05de18 fix: bitrise example & service test (#7837) 2022-04-14 17:00:27 -05:00
chris48s
f45d25c2cc two fixes for [packagist] schemas (#7782)
* 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>
2022-03-28 17:46:17 +00:00
chris48s
eb0ee6a9a1 fix [pypi] badges when package has null license (#7761)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-03-25 18:44:47 +00:00
chris48s
7ca6411d96 cache [pub] publisher badge for an hour (#7762) 2022-03-24 17:08:53 -05:00
Devon Carew
92173a8ca4 Add a [pub] publisher badge (#7715)
* 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>
2022-03-19 11:41:33 -05:00
Pierre-Yves Bigourdan
0d6873b1c3 Switch Steam file size badge to informational color (#7722) 2022-03-13 17:13:26 +01:00
Pierre-Yves Bigourdan
aa9f7fe205 Make W3C and Youtube documentation links clickable (#7721) 2022-03-13 17:06:23 +01:00
Pierre-Yves Bigourdan
ccd23f9bd2 Improve Wercker examples (#7720) 2022-03-13 17:01:19 +01:00
Pierre-Yves Bigourdan
f957c1ce6a Improve Cirrus CI examples (#7719) 2022-03-13 16:56:02 +01:00
Pierre-Yves Bigourdan
facd0d69be Support [CodeClimate] responses with multiple data items (#7716) 2022-03-12 19:08:04 +01:00
Pierre-Yves Bigourdan
5a31a906e3 Delete [TeamCityCoverage] and [BowerVersion] redirectors (#7718)
* Delete [TeamCityCoverage] and [BowerVersion] redirectors

* Fix ESM import
2022-03-12 19:02:18 +01:00
Pierre-Yves Bigourdan
1c1a14b2f8 Deprecate [Shippable] service (#7717) 2022-03-12 18:47:39 +01:00
Caleb Cartwright
800a4b07ea fix: restore version comparison updates from #4173 (#4254)
Co-authored-by: Pierre-Yves Bigourdan <10694593+PyvesB@users.noreply.github.com>
2022-03-12 10:37:07 +00:00
chris48s
7c524325b4 [piwheels], filter out versions with no files (#7696) 2022-03-10 16:27:52 +00:00
chris48s
53cb1da830 set a longer cacheLength on [librariesio] badges (#7692)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-03-07 20:10:10 +00:00
chris48s
9186f0d262 improve python version formatting (#7682) 2022-03-06 20:25:29 +00:00
Pierre-Yves Bigourdan
2cf35912c1 Clarify GitHub All Contributors badge (#7690)
* Clarify GitHub All Contributors badge

* Add documentation text
2022-03-06 18:52:17 +00:00
Pierre-Yves Bigourdan
98c98efd45 Fix GitHub Deployments example color (#7691) 2022-03-06 10:53:09 -06:00
Pierre-Yves Bigourdan
03111e955e Support [HexPM] packages with no stable release (#7685)
* Support [HexPM] packages with no stable release

* Run Prettier a second time
2022-03-05 19:40:10 +01:00
Pierre-Yves Bigourdan
bd1bca6096 Fix [SnykVulnerability] test (#7686) 2022-03-05 19:34:56 +01:00
Nevil Macwan
5ae9fd7380 Support for Test at Scale Badge, run [TAS] (#7612)
* 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>
2022-03-05 02:06:28 +00:00
chris48s
dcc7e28fd0 [packagist] api v2 support (#7681)
* 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>
2022-03-05 01:36:31 +00:00
chris48s
76a64a7896 Add [piwheels] version badge (#7656)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-03-02 20:58:23 +00:00
Jacob Bandes-Storch
814aa30da4 Add [Conan] version service (#7460)
* 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>
2022-03-01 06:08:45 +00:00
chris48s
d3ca453712 remove suspended [github] tokens from the pool (#7654)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-02-27 22:28:49 +00:00
Caleb Cartwright
6e803367e0 tests(snyk): fix github manifest target (#7629)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-02-26 16:37:23 +00:00
Caleb Cartwright
b751cc6c57 fix: github pipenv service test (#7627)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-02-20 17:12:47 +00:00
Nemo157
3dc56134d9 Use the latest build status when checking docs.rs (#7613)
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>
2022-02-20 01:15:40 +00:00
Caleb Cartwright
d3638b1b97 tests(securityheaders): increase timeout (#7628) 2022-02-19 21:53:43 +00:00
Pierre-Yves Bigourdan
a1885cdd37 Remove no download handling and add API warning to [Wordpress] badges (#7606) 2022-02-13 16:17:03 +00:00
chris48s
d8aab9895c Update [amo] to use v4 API, set custom cacheLengths (#7586)
* switch to v4 API

* set custom cacheLengths on amo badges
2022-02-10 20:56:00 +00:00
Caleb Cartwright
68021e16a6 fix(amo): include trailing slash in API call (#7585) 2022-02-10 18:59:12 +00:00