b9d96755ec
chore(deps-dev): bump prettier from 2.8.8 to 3.0.0 ( #9357 )
...
* chore(deps-dev): bump prettier from 2.8.8 to 3.0.0
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.8 to 3.0.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.0.0 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* reformat all the things (prettier 3)
* update tests to await calls to prettier.format()
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: chris48s <git@chris-shaw.dev >
2023-07-10 09:27:51 +00:00
chris48s and GitHub
14892e3943
Implement a pattern for dealing with upstream APIs which are slow on the first hit; affects [endpoint] ( #9233 )
...
* allow serviceData to override cacheSeconds with a longer value
* prevent [endpoint] json cacheSeconds property exceeding service default
* allow ShieldsRuntimeError to specify a cacheSeconds property
By default error responses use the cacheLength of
the service class throwing the error.
This allows error to tell the handling layer the maxAge
that should be set on the error badge response.
* add customExceptions param
This
1. allows us to specify custom properties to pass to the exception
constructor if we throw any of the standard got errors
e.g: `ETIMEDOUT`, `ECONNRESET`, etc
2. uses a custom `cacheSeconds` property (if set on the exception)
to set the response maxAge
* customExceptions --> systemErrors
* errorMessages --> httpErrors
2023-06-13 21:08:43 +01:00
chris48s and GitHub
ae018cdddc
conform to standard js quote rules ( #8395 )
...
* restore standardjs quote behaviour
* conform to standard js quote rules
2022-09-12 17:22:12 +01:00
Paul Melnikow and GitHub
1fcc7e4b98
Stringify and trim whitespace from a few services ( #7880 )
2022-04-22 18:19:04 -04:00
Pierre-Yves B and GitHub
23c0406bed
Migrate from CommonJS to ESM ( #6651 )
2021-07-09 12:53:55 +01:00
Pierre-Yves B and GitHub
d4116b3ab0
Allow links only for social badges, affects [GitHubMilestone Dependabot] ( #6159 )
...
* Allow links only for social badges, affects [GitHubMilestone Dependabot]
* Remove getLink function
* Remove unused import
* Mention social links in guidelines as well
2021-02-08 19:58:20 +00:00
504015c0ba
migrate hapi/joi to joi ( #5624 )
...
* update joi + joi-extension-semver
* @hapi/joi --> joi
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-09-30 17:51:02 +00:00
Caleb Cartwright and GitHub
b149659187
convert some service classes to static fields, run [GitHubLernaJson GithubLicense GithubManifest GithubMilestoneDetail GithubMilestone GithubPackageJson] ( #5595 )
...
* refactor(githublernajson): convert to static fields
* refactor(githublicense): convert to static fields
* refactor(githubmanifest): convert to static fields
* refactor(githubmilestonedetail): convert to static fields
* refactor(githubmilestone): convert to static fields
* refactor(githubpackagejson): convert to static fields
2020-09-23 23:41:36 -04:00
chris48s and GitHub
13d75e0607
upgrade to prettier 2 ( #5051 )
...
* arrowParens: avoid
* remove trailingComma setting
2020-05-05 21:07:43 +01:00
792ecb7c01
Add [github] Milestone service ( #4747 )
...
* Add isMetricOverMetric test validator
* Add Github Milestone and Milestone-Detail
Co-authored-by: Pierre-Yves B <PyvesDev@gmail.com >
2020-03-09 21:10:12 +00:00