Commit Graph

1140 Commits

Author SHA1 Message Date
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
Pierre-Yves Bigourdan
4163856357 Delete deprecated Codetally and continuousphp services (#7572) 2022-02-05 16:43:13 +01:00
Pierre-Yves Bigourdan
449b8ed28f Deprecate [Requires] service (#7571) 2022-02-05 16:37:37 +01:00
Yufan You
d39b2094cc [AUR] Fix RPC URL (#7570)
Before this fix, the AUR badges were showing "not found".

See https://github.com/Jguer/yay/issues/1684
2022-02-05 09:39:21 +00:00
Pierre-Yves Bigourdan
d989222097 Fix [Drone] tests and examples (#7549) 2022-01-30 19:45:50 +01:00
Pierre-Yves Bigourdan
530e1b5fe4 Fix [GitlabCoverage] self-hosted test and example (#7548) 2022-01-29 22:07:18 +01:00
dependabot[bot]
f2d88e76fb chore(deps): bump fast-xml-parser from 3.21.1 to 4.0.1
* chore(deps): bump fast-xml-parser from 3.21.1 to 4.0.1
* update for fast-xml-parser v4
* fix maven and jetbrains badges

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: chris48s <chris.shaw480@gmail.com>
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
2022-01-29 20:10:07 +00:00
dependabot[bot]
0f288a42fc chore(deps): bump got from 11.8.3 to 12.0.1 (#7370)
* chore(deps): bump got from 11.8.3 to 12.0.1
* update limit syntax
* update CancelError import
* update timeout syntax
* set missing user/pass to empty string for basic auth
* fix opm badge

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: chris48s <chris.shaw480@gmail.com>
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
2022-01-29 20:04:11 +00:00
Pierre-Yves Bigourdan
a682ff400a Fix [Nexus] test (#7547) 2022-01-29 17:33:02 +00:00
Kristóf Marussy
5b292903a9 [Depfu] Add support for Gitlab (#7475)
* [Depfu] Add support for Gitlab

Fixes #7474

* [Depfu] Add tests for Gitlab

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-01-29 17:07:12 +00:00
Tapan Chudasama
3fc1ef35bc replace label in hn-user-karma with U/ (#7500) 2022-01-18 17:52:50 -06:00
Jakub Fijałkowski
d5c38c92be Support [Feedz] response with multiple pages without items (#7476)
* Support Feedz response with multiple pages without items

* Parallelize fetches from Feedz when getting multiple pages

* Simplify schema management

* Retrun early if we don't need to fetch any more pages

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-01-16 18:55:57 +00:00
Pierre-Yves Bigourdan
94a8d945c3 Fix [CodacyCoverage] tests and examples (#7470) 2022-01-09 19:26:03 +01:00
Pierre-Yves Bigourdan
0d96a0ea7c Fix [CodeFactor] tests and example (#7471) 2022-01-09 19:16:30 +01:00
Pierre-Yves Bigourdan
bea98b3f9f Fix [Nexus] tests (#7472) 2022-01-09 19:11:16 +01:00
chris48s
bb5614df70 minor [reddit] improvements (#7436)
* apply colour scheme to reddit karma badge

* accept negative metric in reddit karma tests

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-12-29 18:26:44 +00:00
Tapan Chudasama
9069459435 [HackerNews] Show User Karma (#7411)
hackernews: add hn user karma badge
2021-12-28 20:12:00 +00:00
Piotrek Żygieło
3bdf1cb364 [YouTube] Drop support for removed dislikes (#7410)
* [YouTube] Support no longer supporting dislikes

* Drop dislikes and duplicated schema

* Remove YT dislikes

Co-authored-by: Piotrek Żygieło <pzygielo@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-12-23 04:14:26 +00:00
Caleb Cartwright
24355a0773 change closed GitHub issue color to purple (#7374)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-12-18 20:43:02 +00:00
chris48s
86895cf256 update [codacy] tests/examples (#7355)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-12-10 21:37:07 +00:00
chris48s
015c39336b throw on unexpected keys in expectBadge() (#7354)
* throw on unexpected object keys

* fix docs.rs tests

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-12-10 21:26:41 +00:00
aaronweldy
b53ac49f4a [GithubPackageJson] Get version from monorepo subfolder package.json (#7350)
* Add filename query params for subdirectory of monorepo

* Rename query param schema

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-12-05 20:51:12 +00:00
Caleb Cartwright
1f104b2280 tests: fix Jenkins Coverage service test (#7323)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-12-04 17:35:51 +00:00
Caleb Cartwright
567dce6367 tests: fix GitLab Tag service test (#7322)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-12-04 17:15:18 +00:00
Caleb Cartwright
c0642663b3 tests: increase timeout for tokei gitlab tests (#7275)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-12-01 20:51:25 +00:00
chris48s
feb1682814 Clean up cache module; affects [feedz jenkinsplugin myget node nuget packagist travis wordpress] (#7319)
* update terminology
    - "regular update" to "cached resource"
    - "interval" to "ttl"
    - move file and update imports

* set a default TTL, don't explicitly pass params if we want the default

* add tests

* update docs
2021-11-29 21:21:03 +00:00
chris48s
99bffd3a86 Send better user-agent values (and got config changes) (#7309)
* 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>
2021-11-25 17:11:49 +00:00
Caleb Cartwright
95a439a1cc tests: fix Codeship service tests (#7307)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-11-21 21:05:59 +00:00
chris48s
6d22389e88 rename sendAndCacheRequest (#7277) 2021-11-17 20:00:29 +00:00
Caleb Cartwright
53762c7ccd feat: deprecate dependabot badges (#7274) 2021-11-15 22:28:09 +00:00
chris48s
c73072deed Remove requestOptions2GotOptions compatibility layer (#7270)
* gzip --> decompress

* strictSSL --> https.rejectUnauthorized

* auth --> username/password

* qs --> searchParams

* fix base service auth docs

* completely remove requestOptions2GotOptions layer

* update the docs

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-11-15 19:56:08 +00:00
Caleb Cartwright
42b0033bc8 fix: spigetdownloadsize service test (#7273)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-11-15 19:39:31 +00:00
Caleb Cartwright
be013e175b fix: npmversion tagged service test (#7269) 2021-11-14 13:04:36 -06:00
chris48s
0e38eab8df migrate request --> got in [github] auth acceptor (#7248) 2021-11-12 18:04:03 +00:00
dependabot[bot]
9f322f55f6 chore(deps-dev): bump eslint from 7.32.0 to 8.2.0, run [weblate steam oreversion orespongeversions gitlabcoverage] (#7235)
* chore(deps-dev): bump eslint from 7.32.0 to 8.2.0

Bumps [eslint](https://github.com/eslint/eslint) from 7.32.0 to 8.2.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.32.0...v8.2.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* deps: update ts-eslint plugins

* chore: apply linter fixes

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com>
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
2021-11-06 19:06:03 +00:00
chris48s
f1b643df0d remove request from legacy request handler (#7233)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-11-06 10:59:58 +00:00
Caleb Cartwright
6dc8aac451 feat: create new Test Results category (#7218)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-11-05 22:35:40 +00:00
chris48s
b79e00db14 migrate regularUpdate() from request-->got (#7215)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-11-03 19:53:18 +00:00
chris48s
32dd99c540 Two minor docstring fixes (#7216)
* fix XmlElement ref in docstring

* make sure jsdoc picks up renderDownloadsBadge() docstring
2021-11-03 18:49:10 +00:00