* feat: add PAT monitoring functions
This commit adds two monitoring functions that can be used to check
whether the PATs are functioning correctly:
- status/up: Returns whether the PATs are rate limited.
- status/pat-info: Returns information about the PATs.
* feat: add shields.io dynamic badge json response
This commit adds the ability to set the return format of the
`/api/status/up` cloud function. When this format is set to `shields` a
dynamic shields.io badge json is returned.
* feat: add 'json' type to up monitor
* feat: cleanup status functions
* ci: decrease pat-info rate limiting time
* feat: decrease monitoring functions rate limits
* refactor: pat code
* feat: add PAT monitoring functions
This commit adds two monitoring functions that can be used to check
whether the PATs are functioning correctly:
- status/up: Returns whether the PATs are rate limited.
- status/pat-info: Returns information about the PATs.
* feat: add shields.io dynamic badge json response
This commit adds the ability to set the return format of the
`/api/status/up` cloud function. When this format is set to `shields` a
dynamic shields.io badge json is returned.
* feat: add 'json' type to up monitor
* feat: cleanup status functions
* ci: decrease pat-info rate limiting time
* feat: decrease monitoring functions rate limits
* refactor: pat code
* test: fix pat-info tests
* Update api/status/pat-info.js
Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>
* test: fix broken tests
* chore: fix suspended account
* chore: simplify and refactor
* chore: fix test
* chore: add resetIn field
---------
Co-authored-by: Anurag <hazru.anurag@gmail.com>
* build: create npm package
This commit makes sure that the common modules of the GRS package can be
imported as an npm package.
* feat: export card render functions
* style: update formatting
This commit adds the `stale-theme-pr-closer` closer action. This action
is used to close theme pull requests with an `invalid` label that has
been stale for a given number of `STALE_DAYS`.
* ci: add e2e vercel test action
This commit adds several end-to-end tests that can be used
to test whether the Vercel Preview deployment successfully
returns the cards.
* test: add additional e2e card tests
* test: improve e2e card tests
This commit makes sure that the tests also check whether a valid cards
are returned from the preview deployment.
* GRS-1955: Using ES6 import/export in src files
* GRS-1955: Using ES6 import/export in test files
* GRS-1955: Using ES6 import/export in themes index.js
* GRS-1955: Readding blank line at end of top-languages-card.js
* feat: fix test es6 import errors
This commit makes sure jest is set-up to support es6. It also fixes
several test errors and sorts the imports.
* test: update test node version
This commit makes sure node 16 is used in the github actions.
* refactor: run prettier
Co-authored-by: rickstaa <rick.staa@outlook.com>
* Fixed Firefox text overflow / overwriting issue
Tests currently don't work becouse it appears that '@supports' is not supported by cssToObject used within the tests. I currently have no idea how to fix that test but the cards themself appear to not be broken
Fixesanuraghazra/github-readme-stats#664Fixesanuraghazra/github-readme-stats#1134
* Fixed tests by moving to other css-to-object
Moved the `css-to-object` package to @uppercod's version for test fix. This doesn't seem to have the same issues as the older package
* chore: cleanup test
Co-authored-by: Anurag <hazru.anurag@gmail.com>
* Enable multi line repo card descriptions
* Adjust unit tests to multi line descriptions
* refactor: refactored code & fixed tests
* style: minor height adjustments
* chore: codecov stuck
Co-authored-by: anuraghazra <hazru.anurag@gmail.com>
* feat: template option added husky added for same commit disable console in test \
logger utils added env checked for log modified git ignore
* changed are done as per the suggesstion
* changed style and font
* text color dynamic
* fix border and using .bagde class as common
* simplified the badge svg code through a common method
* chore: updated css & fixed tests
Co-authored-by: anuraghazra <hazru.anurag@gmail.com>