Commit Graph
715 Commits
Author SHA1 Message Date
Caleb CartwrightandGitHub b05f0e8d0b Update service tests for [Scrutinizer Microbadger jsDelivr] (#4145)
* fix: support scrutinizer branches with only failed builds

* tests: increase timeout for microbadger tests

* tests: increase timeouts for jsdelivr and microbadger tests
2019-10-07 07:19:07 -05:00
Caleb CartwrightandGitHub 65b54e0420 handle missing license key in [aur] (#4143)
* fix: handle missing license key in aur

* refactor: improve missing license message
2019-10-06 09:17:49 -05:00
seetdandPierre-Yves B f5823241f2 Add documentation for Discord badge (#3952) (#4117) 2019-10-04 22:10:52 +01:00
Paul MelnikowandGitHub 76cb943858 Add a GitHub project badge for Hacktoberfest [GithubHacktoberfest] (#4109) 2019-10-02 22:05:56 -04:00
Paul Melnikowandrepo-ranger[bot] 33a6c5398d Fix an undefined variable in [GithubPackageJson] (#4113)
* Fix an undefined variable in [GithubPackageJson]

Make sure this gets linted in the future.

* Run prettier
2019-10-02 21:26:12 +00:00
Paul Melnikowandrepo-ranger[bot] a5b2f5436c Optimize [GithubIssues] using GraphQL (#4107)
While playing around with a badge for Hacktoberfest I noticed the GitHub Issues badge fetches a huge amount of JSON to render just the total count. There doesn’t seem to be a way to limit the response size through the REST API, so I thought I’d switch this to use GraphQL instead.
2019-10-02 19:34:14 +00:00
Paul MelnikowandGitHub e8d49f2504 Add dependency badge for Pipenv applications [GithubPipenv] (#4096)
I recently published https://github.com/metabolize/rq-dashboard-on-heroku and want to add badges to show the locked version of Python and rq-dashboard, the main dependency it’s wrapping.

This is along the lines of #2259, which was for package.json-based applications, and also included some discussion of a Python application that used `requirements.txt`. It’s useful for showing the pinned version of any dependency in a Python application that uses a lockfile.

In the future, as an alternative to reading Pipfile.lock, I could see expanding this to read Pipfile. However for my purposes I prefer to show the locked dependency, since that’s the version that a user of my package would actually get if they ran it on Heroku.
2019-10-02 15:24:14 -04:00
Pierre-Yves BandGitHub 157a6180b2 Make search work with category names (#4103) 2019-10-02 20:03:59 +01:00
seetdandCaleb Cartwright a865b81acb fix: allow empty but required resolution property for [Bugzilla] (#4102) (#4106)
* fix: use repos from badges organization for GithubContributors  (#4104)

* fix: allow empty but required resolution property for [Bugzilla] (#4102)
2019-10-02 12:11:40 -05:00
seetdandCaleb Cartwright 51d879d7d2 fix: use repos from badges organization for GithubContributors (#4104) (#4105)
Fixes #4104
2019-10-02 00:21:46 -05:00
Caleb CartwrightandGitHub 645343887e fix: add killed to drone schema (#4099) 2019-09-28 11:46:32 -05:00
Caleb CartwrightandPaul Melnikow 90f8ffce9e tests: add endpoint test for #3780 (#4067) 2019-09-23 23:51:43 -04:00
chris48sandGitHub c762d971b4 upgrade Joi and related packages (#4060)
* update dependencies

* (core) children --> keys

* (core) fix/update BaseService validate

* (core) update error messages in tests

* (core) only Joi.attempt if we've got a Joi schema

* (core) allow 'expected' to be a regex

* (services) pass 2 schema to .alternatives()

* (services) functions --> Joi schema

* (services) update expected error message

* (services) explicit check for color: undefined

* re-bump joi

* (services) wrap another regex

* (core/services) remove use of array arguments

* (core/services) when --> conditional

* (services) remove more array arguments

* fix spelling in var name

* DRY up sonar helper
2019-09-23 17:36:56 +01:00
Caleb CartwrightandGitHub d18d4218fc support basic auth with just pass token (#4063)
* feat: support basic auth with token

* refactor: change param name
2019-09-22 11:14:01 -05:00
Pierre-Yves BandGitHub b73d544a67 Add [MicrobadgerSize] documentation (#4038) 2019-09-17 20:18:49 +01:00
Caleb Cartwrightandrepo-ranger[bot] e6be6bdb30 fix(TwitterFollow): encode usernames for links (#4036) 2019-09-17 00:44:07 +00:00
Caleb Cartwrightandrepo-ranger[bot] 233c394fe8 move [MavenMetadata] url to query param (#4021)
* refactor: move MavenMetadata url to query param

* refactor(MavenMetadata): rename query param, update redirect pattern
2019-09-17 00:34:11 +00:00
Caleb Cartwrightandrepo-ranger[bot] b80070985c switch [TeamCity] to pattern and move url to query param (#4022)
* refactor(TeamCity): switch to pattern & move url to query param

* refactor(TeamCity): rename query param
2019-09-16 23:59:04 +00:00
Paul Melnikowandrepo-ranger[bot] 311ccc8834 Fix [CodefactorGrade] again (#4034)
This looks like a case of confusing `Joi.allow()` with `Joi.valid()`.

`Joi.valid(...['A', 'A-']).validate('-')` throws an error but `Joi.allow(...['A', 'A-']).validate('-')` allows it through.

Closes #4033
2019-09-16 17:37:54 +00:00
Caleb Cartwrightandrepo-ranger[bot] 69a57fa8dd move [Jira] hostname to query param (#3990)
* refactor: convert Jira host to query param

* tests: fix Jira auth tests

* refactor(Jira): change query param name
2019-09-16 14:38:28 +00:00
Caleb Cartwrightandrepo-ranger[bot] 51d864efc1 move [Discourse] url to query param (#4020)
* refactor: switch Discourse url to query param

* tests: fix e2e test with Discourse example

* refactor(Discourse): change query param name to server

* tests: update e2e test with new discourse param name
2019-09-16 02:15:19 +00:00
Caleb Cartwrightandrepo-ranger[bot] db0ebf1e6a move [Twitter] url to query param (#4027)
* refactor(TwitterUrl): move url to query param

* refactor(Twitter): update suggestion endpoint

* tests: update twitter suggestion int tests

* chore: fix typo in suggestion int test
2019-09-16 02:07:24 +00:00
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