Commit Graph
182 Commits
Author SHA1 Message Date
Pierre-Yves BigourdanandGitHub 4163856357 Delete deprecated Codetally and continuousphp services (#7572) 2022-02-05 16:43:13 +01:00
chris48sGitHubrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
344954f028 update raster proxy docs (#7348)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-12-05 15:31:49 +00:00
chris48sandGitHub 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
chris48sGitHubrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
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
chris48sandGitHub 313dc983f1 upgrade to node 16 (#7271) 2021-11-15 19:29:50 +00:00
chris48sGitHubrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
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 CartwrightGitHubrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
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
cnicoGitHubCaleb Cartwrightrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
bab818b1c6 Doc self hosting correction (#7024)
* Correction of documentation for configuration

* Better content

* prettier correction

* Review asked to ignore local config file

* Apply suggestions from code review

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-10-17 21:03:07 +00:00
Dmitriy FishmanandGitHub 4c8a211feb Typo fix in releases.md (#7137) 2021-10-11 12:54:01 -04:00
Dominik GrzelakandGitHub 887ec5b441 Fix hyphens in docs for running code coverage (#7136) 2021-10-10 18:05:22 +00:00
Paul MelnikowandGitHub 4a8c1d1d0f Update Shields production access doc (#7079) 2021-09-28 16:28:03 -04:00
Caleb CartwrightGitHubrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
28cf98fff4 add documentation guide for adding new secrets (#7072)
* docs: add guide for adding new secrets

* generalize docs for adding secrets/settinsg

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-09-27 22:34:37 +00:00
Florian "sp1ritGitHubCaleb Cartwrightrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
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 CartwrightGitHubIdeotecrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
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 BandGitHub 8fd54b1b8d Switch all shields.io links to https (#6935) 2021-08-22 17:20:59 +01:00
Pierre-Yves BandGitHub 71bbcd527b Fix badge classes links in tutorial (#6911) 2021-08-19 18:04:00 +01:00
chris48sandGitHub f4781804f6 Update self hosting docs (#6877)
* update node version

* remove notes on redis
2021-08-08 21:11:09 +01:00
Seth FalcoGitHubrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
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
Pierre-Yves BandGitHub 5f9e8deafc Fix UptimeRobot status endpoint (#6757) 2021-07-11 14:17:26 +01:00
Pierre-Yves BandGitHub 30e46a69a7 Delete old deprecated badges (#6756) 2021-07-11 13:47:25 +01:00
Pierre-Yves BandGitHub 23c0406bed Migrate from CommonJS to ESM (#6651) 2021-07-09 12:53:55 +01:00
Seth FalcoGitHubrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
856c71c1da docs: broken links and typos (#6676)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-06-30 02:29:38 +00:00
Pierre-Yves BandGitHub 68fb0b7bab Run on node 14 in production, drop node 10 support for badge-maker and update test matrix (#6652) 2021-06-21 20:46:55 +01:00
Caleb CartwrightGitHubrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
956f2e0584 update simple-icons to v5 with by-name lookup backwards compatibility (#6591)
* deps: update simple-icons to v5 in BC manner

* fix: handling of overlapping titles

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-06-12 19:51:28 +00:00
Pierre-Yves BandGitHub 9c7baa26ab Deprecate [Bintray] service (#6423) 2021-04-24 18:05:59 +01:00
Pierre-Yves BandGitHub 8ef8b76d8d Delete outdated rewriting-services.md (#6391) 2021-04-19 21:41:48 +01:00
Pierre-Yves BandGitHub dfb92961c1 Delete outdated users.md (#6390) 2021-04-19 21:34:50 +01:00
chris48sandGitHub 4c52b0192a Upgrade to gatsby 3 (#6331)
* upgrade all the gatsby packages

* require npm >=7 to prevent lockfile churn

* get everything onto a version of safe-buffer with typescript defs

* update docs
2021-03-28 20:08:19 +01:00
Pierre-Yves BandGitHub f1dc5b27f1 Update number of badges served each month (#6278)
* Update number of badges served each month

* Use less precise numbering in releases documentation
2021-03-18 14:18:34 +00:00
Caleb CartwrightandGitHub 9a91499d37 Add docs for all types of releases (#6210)
* docs: add info on all releases

* docs: incorporate feedback and discussion items

* docs: fix another typo
2021-03-15 07:44:01 +00:00
chris48sandGitHub 2d3b845adc refresh self-hosting docs (#6273) 2021-03-14 18:55:56 +00:00
Caleb CartwrightGitHubrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
806c52bdd6 Update Contributing documentation on PRs/service tests & amending history (#6128)
* docs: update contributing info on PRs/tests & amending history

* docs: include git config links

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-02-02 00:54:23 +00:00
Cobertos / SamanthaGitHubCaleb Cartwrightrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
7a1eee06a2 Update self-hosting.md documentation for running with Prometheus (#6052)
* Update documentation for running with Prometheus

There's two environment variables that need to be set in order to use Prometheus and the /metrics endpoint.

* Missing s

* Update doc/self-hosting.md

Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>

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-01-16 17:54:43 +00:00
Paul MelnikowandGitHub 46b98c40be Remove the in-memory cache (#6037)
Shields has long had an in-memory cache with some complex logic for determining when the cached values are used and when they are flushed. At the time this was implemented, squeezing cache performance was helpful since there was no downstream cache. For years now we've used Cloudflare as a CDN, so trying to cache onboard is less useful than before. Furthermore, since the cache is very small and only used in fairly restrictive ways, it probably has very little impact on performance.
2021-01-11 15:53:36 -05:00
chris48sandGitHub 0d95612bcf add note to docs about img.shields.io vs shields.io (#6039)
* there are now fewer bottlenecks

* add note to docs about img.shields.io vs shields.io
2021-01-10 20:40:44 +00:00
e54e69cf8e add docs on input validation (#6009)
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
2021-01-04 19:32:32 +00:00
chris48sGitHubrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
6ccd24815f remove refs to netlify from docs (#5978)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-12-23 23:22:22 +00:00
chris48sGitHubrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
0be2ee0aa7 post-Heroku migration cleanup tasks (#5886)
* remove 'commits to be deployed' badge

* remove old deploy scripts

* update prod hosting docs

* remove 'commit is/isn't in gh-pages' action

* remove OVH servers from docs

* clarify role of CloudFlare DNS

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-12-01 19:48:20 +00:00
Pierre-Yves BandGitHub c73b92f188 Drop .env support (#5864) 2020-11-23 21:20:55 +00:00
Pierre-Yves BandGitHub 796dc5a25b Remove documentation about old OVH VPS servers (#5863) 2020-11-22 18:54:02 +00:00
Hubert JagodzińskiandGitHub b9d5da66fd Update service-tests.md (#5706)
* Update service-tests.md

Added information `expectBadge()` accepts a RegExp.

* Run prettier
2020-10-15 19:19:46 +00:00
Paul MelnikowandGitHub 1fab1a7140 When configured, require requests to come from Cloudflare (#5666)
This is the code part of #3027, following [this article](https://www.viget.com/articles/heroku-cloudflare-the-right-way/) and using [this middleware](https://github.com/clive-io/cloudflare-middleware).

I pulled in the `addHandlerAtIndex()` function @chris48s wrote for #5574.

The middleware isn't perfect for scoutcamp, since it relies on `req.ip` which is something set by Express. However, the other solutions I found were either explicitly deprecated ([cloudflare-ip](https://www.npmjs.com/package/cloudflare-ip)) or relied on dynamically fetching the list of Cloudflare hosts ([cloudflare-ips](https://www.npmjs.com/package/cloudflare-ips)), which seems unnecessary as this list has not changed in several years.

I've left this off to start, so we can test it in production using an env var before we make it the production default.
2020-10-12 12:36:42 -04:00
JeongHoon Byun (a.k.a Outsider)andGitHub dc32a5fc4b Fix wrong anchor for writing tests document (#5677) 2020-10-10 05:14:52 +00:00
Paul MelnikowandGitHub e1ac63d3be Finish removing server-secrets.js (#5664)
I’ve tested locally that setting `gh_token` still conditionally enables `ConditionalGithubAuthV3Service`.

Closes #3393
2020-10-07 17:29:03 -04:00
chris48sGitHubrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
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
Paul MelnikowandGitHub 7c226456fe Adopt static fields in [amo] and core (#5440)
Since we've upgraded production to Node 12 (#5436) we can finally adopt static fields!

This starts the process by updating core and one of the service families.
2020-08-19 14:49:29 -04:00
chris48sandGitHub 0bcd7eef15 Run on node 12 in production, update test matrix (#5436)
* upgrade node/npm versions in package.json

* delete config for zeit now
zeit now is no more, vercel have decomissioned the now v1 platform

* upgrade to node 12 for (docker) self-hosting users

* update docs

* update test matrix
run tests on node 12 and node 14

* link to nodejs version support docs in package comment
we'll continue to tun the package tests on node 10
while its still maintained and drop in the next
major release

* update depcheck

* remove npm-install job
2020-08-18 19:28:58 +01:00
Pierre-Yves BandGitHub 135b842946 Migrate [Discord] implementation to use bot token (#5346)
* Migrate [Discord] implementation to use bot token

* Rework authorization field creation

* Revert "Rework authorization field creation"

This reverts commit caf65bde5d.

* Add LGTM exclusion for hardcoded credentials
2020-07-24 18:04:12 +02:00
Paul MelnikowandGitHub 8fa61ae164 Update Cloudflare access + remove OAuth app (#5295) 2020-07-08 19:12:22 -04:00
Paul MelnikowGitHubrepo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
778b146d8e Update list of who has access to production resources (#5192)
This action item was requested at the ops team meeting.

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-06-14 20:09:04 +00:00