Commit Graph
693 Commits
Author SHA1 Message Date
Caleb Cartwrightandrepo-ranger[bot] d1c0165afd refactor(Website): move url to query param (#4028) 2019-09-16 01:19:55 +00:00
Caleb Cartwrightandrepo-ranger[bot] 76b2e2634a fix(GitHubDownloads): type error on latest with pre-downloads (#4030) 2019-09-16 01:08:39 +00:00
Caleb Cartwrightandrepo-ranger[bot] 9fe4d739b0 fix [LiberapayGoal] type error when no receiving data exists (#4029)
* fix(LiberapayGoal): type error when no receiving data exists

* chore: prettify things
2019-09-16 00:39:34 +00:00
Paul Melnikowandrepo-ranger[bot] 0434b9b3ba Fix TypeError for invalid [Debian] response (#4023)
Fix #4019
2019-09-15 17:13:21 +00:00
Paul Melnikowandrepo-ranger[bot] 23ac2b0318 Fix AssertionError in [DynamicJson] when a non-object is in the JSON (#4024)
Closes #4018
2019-09-15 17:05:02 +00:00
Paul MelnikowandGitHub fe34bcf28b Throw explicit error on invalid [codefactorgrade] color (#4015)
It’s hard to understand how #3813 is persisting. The schema should reject keys not in the object… it’s very puzzling.

This replaces the code used to get the color with a function call that throws an explicit error when the key is missing. It should at least make it clear what the key value is when this fails in the future.
2019-09-14 11:24:57 -05:00
Honza HommerandCaleb Cartwright 22d713c29b Support custom [Packagist] server (#3986)
* feat(packagist): add custom server query param

* chore(docs): packagist docs tweak

* feat(packagist): custom server downloads badge

* test(packagist): fix custom server tests
2019-09-13 14:38:45 -05:00
Sandro RodriguesandCaleb Cartwright fa0a25cf0a Added [SecurityHeaders] badge (#3958)
* Added security headers service.

* Small improvements from provided feedback.

* Fixed failing tests.

* Removed grade condition on render method.

* Changed protocol and path from pattern to querystring
2019-09-10 20:54:49 -05:00
Andy LiandCaleb Cartwright 4b9053d2d5 add [twitch] user status badge (#3683)
* add /twitch/status/:user badge

* update comments

* use a proper schema for the Twitch API calls

* use a token to make Twitch api calls

* fix handling of rate-limit error and bad token error

* [twitch] get a token as soon as creating a Twitch service

* [twitch] start both requests to users and stream before awaiting

* [twitch] set a timeout to replace the token before it expires

* [twitch] use authHelper

* [twitch] skip tests when no credentials

* [twitch] add one more status test

* twitch: do not check whether a user exists
2019-09-09 16:41:32 -05:00
Pierre-Yves Bandrepo-ranger[bot] c6d52e40b8 Fix [Scrutinizer] error when using default branch without analysis data (#3962) 2019-09-08 21:09:00 +00:00
chris48sandrepo-ranger[bot] b3be4d94d5 require key 'latest' to exist (#3956) 2019-09-07 20:03:41 +00:00
chris48sandPaul Melnikow 873172522f [dynamicxml] wrap xpath errors (#3955)
Closes #3796
2019-09-07 13:02:27 -04:00
Anand ChowdharyandCaleb Cartwright 58a5239e18 Add [Netlify] (fixed #3129) (#3953)
* Add Netlify (fixed #3129)

* Update services/netlify/netlify.service.js

Co-Authored-By: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>

* Remove pattern from return statement

Co-Authored-By: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>

* Add Netlify namedLogo to return statement

Co-Authored-By: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>

* Change label from "build" to "netlify" in test

Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com>

* Change label from "build" to "netlify" in test

Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com>

* test(netlify): Fix failing tests

Co-Authored-By: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>

* Fix "netlify" spelling in label

Co-Authored-By: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>

* Use const instead of let for result

Co-Authored-By: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>

* Change "project not found" to "not found"

* Use unknown as fallback response

Co-Authored-By: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>

* Add documentation for project ID, remove commented part

* Fix documentation key in example
2019-09-06 12:21:17 -05:00
Pierre-Yves BandGitHub 4190609d1b Handle missing Symfony Insight grade gracefully (#3933) 2019-09-03 09:49:00 +01:00
Réda Housni AlaouiandCaleb Cartwright 94fdb81d1c Maven central service should not parse versions as number (#3935) 2019-09-02 12:47:18 -05:00
chris48sandGitHub 136c1f3525 more lenient semver coerce in [wordpress] version (#3914) 2019-08-27 21:09:37 +01:00
Paul MelnikowandGitHub 433c73a49f Add some implementation comments to Luarocks (#3924)
These came from https://github.com/badges/shields/pull/3094#issuecomment-467396574
2019-08-27 08:41:26 -04:00
Pierre-Yves BandGitHub e00af3200c Handle more [Twitter] invalid user inputs (#3922) 2019-08-26 17:38:36 +01:00
Caleb CartwrightandGitHub c9cd77a746 chore: update JenkinsTests example (#3912) 2019-08-25 14:01:02 -05:00
Patrick FaionandCaleb Cartwright 9c5ecc2c2d Add service for [GitHubLabels] (#3902)
* Add service for github labels

* Set better category

Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com>

* Add more restrictive schema for color property

Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com>

* Make error message more consistent
2019-08-24 17:01:32 -05:00
Caleb CartwrightandGitHub a0be4aae1c tests: update DubDownload service test for reliability (#3910) 2019-08-24 12:33:27 -05:00
Caleb CartwrightandGitHub 997cb0953c tests: improve durability of nexus service test (#3911) 2019-08-24 12:25:11 -05:00
Caleb CartwrightandGitHub fad4d1e286 tests: improve reliability of Snyk tests (#3900) 2019-08-21 08:18:36 -05:00
Caleb CartwrightandGitHub 08474aed11 move [Nexus] server and queryOpt from route to query params (#3792)
* refactor(Nexus): move server and queryOpt from route to query params

* tests: fix nexus auth test

* chore: satiate prettier
2019-08-19 09:45:02 -05:00
chris48sandGitHub 20202b5bfa convert eslint-jsdoc warnings to errors (#3882)
* convert eslint-jsdoc warnings to errors
* appease linter
2019-08-18 20:05:18 +01:00
chris48sandGitHub 5168675d0d move [githubtag] and [githubrelease] under /v, move variants to query params (#3610)
* move GH tag and release under /v, move variants to query params
    - move github /tag and /release under /v
    - both sort by date as default
    - specify sort=date/semver, include_prereleases as query params
    - use graphql api for tags

* pass string params from example defs to modal
2019-08-17 22:16:41 +01:00
Caleb CartwrightandGitHub b14203e0dd tests: fix OSSLifecycle service test with new active target (#3877) 2019-08-16 11:34:32 -05:00
Caleb CartwrightandGitHub 452b9840ea tests: fix aur vote service test (#3837) 2019-08-12 06:20:12 -05:00
Caleb CartwrightandPaul Melnikow 750c8fda62 chore: add jsdoc to osslifecycle function (#3838) 2019-08-11 21:49:13 +03:00
Caleb CartwrightandGitHub fb2727d22e tests: make MozillaObservatory service tests more durable (#3817) 2019-08-09 15:56:53 -05:00
Paul MelnikowandGitHub 4eb6d25ff7 Fix trailing 0 in [F-Droid] yaml format (#3831)
Closes #3830
2019-08-06 15:39:55 +02:00
Caleb CartwrightandGitHub acfcf82d1f fix: tweak build schema for AzureDevOps to handle never built use case (#3829) 2019-08-06 08:09:58 -05:00
Caleb CartwrightandPaul Melnikow 0c5c6f9551 fix: runtime TypeError in CodeFactorGrade service (#3815)
Fixes #3813
2019-08-03 18:35:24 +01:00
Pierre-Yves BandGitHub 8ff783bc68 Handle missing UserDownloads in [ChromeWebStoreUsers] (#3812) 2019-08-01 07:49:51 +01:00
Caleb CartwrightandGitHub 9eba551842 fix runtime type error in [crates] version (#3811)
* fix: runtime type error in crates version service

* chore: switch CratesVersion tester to use createServiceTester helper

* chore: removed commented out line
2019-07-31 18:19:34 -05:00
chris48sandGitHub 75ee413178 Add BaseGraphqlService, support [github] V4 API (#3763)
* add base class for Graphql APIs
* add GithubAuthV4Service + updates to GH token pool
* update github forks to use GithubAuthV4Service
* rename GithubAuthService to GithubAuthV3Service
2019-07-29 21:42:03 +01:00
Caleb CartwrightandPaul Melnikow a42c9d3517 tests: increase codetally test timeout (#3791) 2019-07-25 22:16:38 -05:00
Paul MelnikowandGitHub ab7a2106b5 Handle [DynamicJson] parse error (#3783)
Close #3781
2019-07-25 11:35:31 -05:00
Paul MelnikowandGitHub 09f9f80e6c Use https for [sourceforge] (#3778) 2019-07-25 10:27:51 -05:00
Paul MelnikowandGitHub ead56cdf49 [DynamicJson] Catch jsonpath parse error (#3776)
Closes #3772
2019-07-24 22:07:23 -05:00
Pierre-Yves BandGitHub 777a5ff23c Cover missing PHP version requirement in [PackagistPhpVersion] (#3768) 2019-07-24 22:18:13 +01:00
Paul MelnikowandGitHub cfbd2c30df SVG by default (#3717)
Make cleaner badge URLs by omitting the `.svg` extension.

Closes #2674
2019-07-24 12:57:39 -05:00
Caleb CartwrightandPaul Melnikow 21a67b9511 chore: fix teamcity example badge listings (#3759)
Refs https://github.com/badges/shields/pull/3717#discussion_r305633151
2019-07-22 19:19:26 -05:00
Paul MelnikowandGitHub 28b8836595 Unify the ESLint config (#3743)
Adding TypeScript to the frontend and a `.d.ts` file to `core` (see #3742) has multiplied out the different combinations of lint rules. ESLint has support for file-pattern-based overrides, which we've used in some places, but we've also maintained a separate eslintrc for `frontend/`.

This merges the config together, with the strategy of putting all the rules at the top level except where they conflict, and applying settings to exactly the files where they should apply.

This introduces a few new errors in the server but they are true positives – hoisting and lowercase class names – things we don't really need to be doing).
2019-07-22 15:06:38 -05:00
Pierre-Yves BandGitHub 345c26f72d Handle packages with no released versions in [PackagistVersion] (#3746) 2019-07-20 17:52:53 +01:00
Pierre-Yves BandGitHub 3dbe655611 Display one decimal for metrics smaller than 10 (#3735)
* Display one decimal for metrics smaller than 10

* Update test validators

* Run Prettier

* Update GitHub regexes
2019-07-17 20:00:29 +01:00
Paul MelnikowandPierre-Yves B 3bce0b0eee Capitalize Open Collective in badge listing (#3734) 2019-07-15 22:27:16 +01:00
Paul MelnikowandGitHub b493fbf70e Add warnings alongside deprecated URL patterns (#3715)
Ref #3714
2019-07-14 19:14:19 -04:00
Paul MelnikowandGitHub 6a2f384860 Update [Sonar] routes: metric first, and server in the query string (#3696)
This is the preferred way we’re handling server URLs: in the query string.

While we still have a mix of these, I’ve argued this way is better for these reasons:

1. It allows us to make the URLs a bit more standardized across services.
2. It makes the routes unambiguous.
3. It requires less code.

While it introduces a URL-encoding requirement on the parameter, I think these tradeoffs are worth it.
2019-07-14 17:06:14 -04:00
Caleb CartwrightandPierre-Yves B bd8b1ead59 tests: remove service tests for dropped static png routes (#3712) 2019-07-13 17:40:17 +01:00