chris48s
e8c42e9ec1
migrate service tests to GH actions ( #8421 )
...
* run service tests with GHA
* rename GithubGist services to Gist
* completely delete circle ci config
2023-01-17 20:55:57 +00:00
chris48s
f67fe525c2
fix service test loader on windows, add tests ( #8786 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2023-01-14 00:37:25 +00:00
Prashant Rawat
5e6583c530
Docstrings for php-version service ( #8766 )
...
* add docstrings for php-version service
* update docstring for resource-cache service
* update docstring param type
2023-01-06 21:01:59 +00:00
chris48s
c3d08f7f8b
Send X-GitHub-Api-Version when calling [GitHub] v3 API ( #8669 )
...
* send X-GitHub-Api-Version when calling GitHub v3 API
* TODO: invesitgate
* read baseUrl from config.service.baseUri
* add workflow to check for new GH api releases on schedule
* format config/default.yml to match yaml.dump() format
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-12-31 15:56:04 +00:00
chris48s
f67251a9ca
don't try to call .entries on null or undefined ( #8757 )
2022-12-29 16:54:11 +00:00
chris48s
00f35c67e8
fix debug logging of undefined query params ( #8540 )
2022-12-28 19:54:11 +00:00
chris48s
53c5cfa94d
allow passing key to [stackexchange] ( #8539 )
...
* refactoring groundwork
* add stackapps_api_key setting
* add test for stackexchange auth
* clarify docs
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-12-04 10:53:59 +00:00
Sébastien Règne
bcc39200ae
fix: support logoColor to shield icons. ( #8263 )
...
* fix: support logoColor to shield icons.
* FIXUP: Use 'travis-ci' to 'travis'
* FIXUP: Update docs.
* docs tweak
Co-authored-by: chris48s <chris.shaw480@gmail.com >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-11-26 13:48:34 +00:00
chris48s
b95e60bace
don't call external services in core tests ( #8643 )
...
* don't call external services in core tests
* remove duplicate test
2022-11-24 17:57:53 +00:00
chris48s
5305e11f79
Remove 'suggest badges' feature ( #8311 )
...
* remove 'suggest badges' feature
* remove allowedOrigin/ALLOWED_ORIGIN setting
* keep allowedOrigin for now
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-11-09 18:15:59 +00:00
chris48s
d78a2f4155
allow/validate bitbucket_username / bitbucket_password in private config schema ( #8472 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-10-08 10:37:05 +00:00
chris48s
b624179b8d
get the tests passing on windows ( #8350 )
...
* run the core tests on windows
* fix glob with windows path seperator
* always use slash when slicing serviceClass matches
..and add comment explaining why we need to do this
* strip line endings (+ any other whitspace) before base64 encoding
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-08-29 19:58:10 +00:00
Caleb Cartwright
65d12efe32
ci: support new circle PR url variable ( #8135 )
2022-06-28 06:03:17 -05:00
Paul Melnikow
d6d5c02ed5
Remove obsolete monitor.html ( #7878 )
2022-04-22 18:09:55 -04:00
chris48s
8821ff85fc
handle missing 'fly-client-ip' ( #7814 )
2022-04-05 20:29:28 +01:00
chris48s
ca1e77436b
allow requireCloudflare setting to work when hosted on fly.io ( #7781 )
2022-03-26 20:08:22 +00:00
chris48s
ace5e03221
set a higher default cacheLength on rating/star category ( #7587 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-02-10 21:02:22 +00: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
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
Caleb Cartwright
38c1e2df16
restore cors header injection from #4171 , run [npm travis] ( #4255 )
...
* fix: restore cors header injection from #4171
* tests: move test into describe
* prettier
2021-12-05 15:40:48 -06: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
chris48s
6d22389e88
rename sendAndCacheRequest ( #7277 )
2021-11-17 20:00:29 +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
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
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
eb07b60cf0
migrate github badges to use got instead of request; affects [github librariesio] ( #7212 )
...
* migrate github badges to use got instead of request
* simplify creation of requestFetcher in libraries.io base
* improve libraries.io connection error test
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-10-31 16:19:09 +00:00
Caleb Cartwright
ae58e4a211
Add authentication for Libraries.io-based badges, run [Libraries Bower] ( #7080 )
...
* feat: support authentication on Libraries.io requests
* feat: wire up libraries.io config and api provider instantiation
* feat: create libraries.io and bower base classes
* refactor: tweak libraries/bower service classes and tests
* rename request fetcher function/arg
* throw exception when no tokens available
* cleanup old value
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-10-28 19:21:24 -05:00
chris48s
f62dbed843
set content-length header on badge responses ( #7179 )
...
closes #7171
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-10-21 17:09:45 +00:00
chris48s
14f64d17a8
Revert "got --> node-fetch" ( #7175 )
...
This reverts commit b209f5c63a .
2021-10-21 18:01:10 +01:00
chris48s
b209f5c63a
got --> node-fetch ( #6914 )
2021-10-08 17:27:50 +01:00
chris48s
0ce98396d7
remove [github] admin routes ( #7105 )
2021-10-05 17:17:26 +01:00
Caleb Cartwright
5e96598fcb
refactor: cleanup legacy sinon sandboxing ( #7066 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-09-26 20:34:51 +00:00
Florian "sp1rit
8a9efb2fc9
[OBS] add Open Build Service service-badge ( #6993 )
...
* service: add obs service
* service: obs: replaced replaceAll with replace and global regex
* service: obs: added space between class members
* service: obs: support for multiple instances
* service: obs: removed user prefix from auth vars
obs_userName is now called obs_user and obs_userPass is called obs_pass
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
* service: obs: removed constructor hack in favour of serviceKey
* service: obs: apply suggestions from @calebcartwright
* service: obs: remove unneccesary http status mappings
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-09-25 17:44:56 +00:00
Caleb Cartwright
961e13b229
Add API-based support for [GitLab] badges, add new GitLab Tag badge ( #6988 )
...
* Added GitLab Tag service
* Added prettyMessage for when repo has no tags
* Added pretty message for repo not found
* core: esm-ify gitlab tag service
* feat: support gitlab auth
* feat: support custom gitlab url on tag badges
* tests: add auth test for gitlab
* docs: fix gitlab config key references
* feat: support gitlab tag sorting options
* docs: add custom gitlab instance example for tags badge
* use v in gitlab route
* fix: gitlab tag examples
Co-authored-by: Ideotec <guille@ideotec.es >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-09-14 23:06:57 +00:00
Pierre-Yves B
8fd54b1b8d
Switch all shields.io links to https ( #6935 )
2021-08-22 17:20:59 +01:00
dependabot[bot]
5cdb8102d8
chore(deps-dev): bump icedfrisby-nock from 2.0.0 to 2.1.0 ( #6819 )
...
* chore(deps-dev): bump icedfrisby-nock from 2.0.0 to 2.1.0
Bumps [icedfrisby-nock](https://github.com/paulmelnikow/icedfrisby-nock ) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/paulmelnikow/icedfrisby-nock/releases )
- [Changelog](https://github.com/paulmelnikow/icedfrisby-nock/blob/main/CHANGELOG.md )
- [Commits](https://github.com/paulmelnikow/icedfrisby-nock/compare/2.0.0...2.1.0 )
---
updated-dependencies:
- dependency-name: icedfrisby-nock
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* fix: ensure network available during non-mocked service tests
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-07-29 21:13:40 +00:00
Seth Falco
bd6f4ee146
fix: authenticate weblate requests ( #6790 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-07-25 15:53:41 +00:00
chris48s
8983c39f74
Re-apply 'Migrate request to got (part 1)' ( #6755 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-07-11 13:28:14 +00:00
Pierre-Yves B
23c0406bed
Migrate from CommonJS to ESM ( #6651 )
2021-07-09 12:53:55 +01:00
anatawa12
b0384f438c
[GradlePluginPortal] add gradle plugin portal ( #6449 )
2021-06-07 07:55:23 +01:00
chris48s
830bb15b58
increase max-age for download and social badges ( #6567 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-06-02 16:28:00 +00:00
Pierre-Yves B
59dcdf24f3
Remove rate limiting functionality ( #6513 )
2021-05-20 08:02:44 +01:00
Pierre-Yves B
a51ef2996a
Increase server request rate limits ( #6511 )
2021-05-16 22:25:39 +01:00
dependabot-preview[bot]
636ed87057
Build(deps-dev): bump prettier from 2.2.1 to 2.3.0, run [ciibestpractices eclipsemarketplacedownloads gemdownloads githubdeployments githubtotaldiscussions githubforks githubhacktoberfest githubissuessearch githubpackagejson githubsponsors githubtag jenkinscoverage node npm nuget scoop teamcitybuild testspace] ( #6482 )
...
* Build(deps-dev): bump prettier from 2.2.1 to 2.3.0
Bumps [prettier](https://github.com/prettier/prettier ) from 2.2.1 to 2.3.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.2.1...2.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* chore: prettier
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-05-15 08:49:20 +00:00
dependabot-preview[bot]
1b07126207
Build(deps-dev): bump eslint-plugin-promise from 4.3.1 to 5.1.0 ( #6412 )
...
* Build(deps-dev): bump eslint-plugin-promise from 4.3.1 to 5.1.0
Bumps [eslint-plugin-promise](https://github.com/xjamundx/eslint-plugin-promise ) from 4.3.1 to 5.1.0.
- [Release notes](https://github.com/xjamundx/eslint-plugin-promise/releases )
- [Changelog](https://github.com/xjamundx/eslint-plugin-promise/blob/development/CHANGELOG.md )
- [Commits](https://github.com/xjamundx/eslint-plugin-promise/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* chore: correct false eslint positives
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[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-05-01 21:05:02 -05:00
Pierre-Yves B
9c7baa26ab
Deprecate [Bintray] service ( #6423 )
2021-04-24 18:05:59 +01:00
chris48s
22fb91fa36
use \r\n linebreaks when writing raw HTTP ( #6386 )
2021-04-19 18:29:40 +01:00
chris48s
7d452472de
return a 408 Request Timeout response for timed out requests ( #6371 )
2021-04-11 21:29:13 +01:00