1
0
mirror of https://github.com/badges/shields.git synced 2025-04-18 19:44:04 +03:00

1592 Commits

Author SHA1 Message Date
Jeremy Lainé
015ea0023e
[PyPI] Fix license for packages following PEP 639 (#11001)
* [PyPI] Fix license for packages following PEP 639

PEP 639 states that the preferred way of documenting a Python project's
license is an SPDX expression in a `License-Expression` metadata field.
PyPI exposes this information in `info.license_expression` in its JSON
data.

Fixes: #11000

* add license_expression to pypi response schema

* move comments inline into the relevant blocks

* assign both license and license_expression to intermediate variables

* always pass a license_expression in test input objects

---------

Co-authored-by: chris48s <git@chris-shaw.dev>
2025-04-06 18:31:44 +00:00
Djordy Koert
b7fd897103
fix(#10970): codecov branch badge (#10971) 2025-03-26 21:17:17 +00:00
jNullj
834e4e1f96
Update [SourceForge] commit count badge to support repository parameter (#10954)
* [sourceforge] update commit count service to support repo param

follow-up to #10935
sourceforge commit count also requires the new repo param for some projects.

* [sourceforge] add redirector for legacy commit count URLs

* fix missing openapi path
2025-03-16 20:27:43 +00:00
Ari Kalfus
abf0a2970b
feat: add new badges for new [ansible] collection APIs (#10938)
* feat: add ansible collection v2 badge for latest version

* feat: add ansible collection downloads count badge

* set default galaxy version label and fixed ansible tests

* apply PR requested changes

* slim down schemas to minimal required elements
2025-03-13 18:00:29 +00:00
jNullj
231a48fa87
[sourceforge] add repo param to last commit service (#10935)
* [sourceforge] add repo param to last commit service

some sourceforge projects have multiple repositories, so we need to
specify the repository to use for the last commit service.

* [sourceforge] add redirect for old project param only URLs
2025-03-09 16:23:39 +00:00
Jordi Boggiano
be9cdc2276
[Packagist] Update default domain for repo metadata (#10920)
* Update default packagist domain for repo metadata

* prettier

---------

Co-authored-by: chris48s <git@chris-shaw.dev>
2025-03-05 07:32:22 +00:00
jNullj
42e78083ab
remove logoWidth param (#10878)
* remove `logoWidth` param
Fixes #10285

* remove `logoWidth` param
Fixes #10285

* fix: add `logoWidth` parameter to BaseService test
2025-03-02 11:16:02 +00:00
Danny Yang
94909ab29d
Mark Stubs-only packages with [PypiTypes] badge (#10864)
* add python typing badge

* prettier

* Update services/pypi/pypi-typing.service.js

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>

* address comments

* rename

* fix test

* check Typing :: Stubs Only

* change test package to typeshed

---------

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
2025-02-02 17:12:45 +00:00
chris48s
2c32e02bd0
add tests for dynamic xml with lowercase doctype (#10845) 2025-01-24 21:22:12 +00:00
Christian Bewernitz
007a7e6c47
pass matching mime type to xmldom; test [dynamicxml] (#10830)
* feat: pass matching mime type to xmldom

If the `Content-Type` header contains one of the mime types supported by `DOMParser`, the first matching mime type will be used instead of `text/xml`.

The default is still `text/xml` for cases when the header is not present or none of the mime types from the list are present.

* factor out and add tests

---------

Co-authored-by: chris48s <git@chris-shaw.dev>
2025-01-21 19:52:59 +00:00
chris48s
954147f7d9
URL validator tidyup; affects [discourse dynamic endpoint gerrit jira maven nexus osslifecycle python vpm website] securityheaders sonar swagger w3c (#10810)
* add a required url validator

* replace occurrences of optionalUrl.required() with url

* use standard validators in server.js
2025-01-18 19:16:41 +00:00
chris48s
49bcb52173
allow [chromewebstore] size to contain decimal point (#10812)
* allow [chromewebstore] size to contain decimal point

* Update services/chrome-web-store/chrome-web-store-size.service.js

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>

* Update services/chrome-web-store/chrome-web-store-size.spec.js

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>

* prettier

---------

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
2025-01-18 19:14:45 +00:00
Pierre-Yves Bigourdan
4a75cf09a7
Add auth support to [Reddit] badges (#10790)
* Add auth support to [Reddit] badges

* Simplify token response schema
2025-01-18 16:13:53 +01:00
Eva
ffe8d88bfd
Fixed mixed up Code climate endpoints (#10813) 2025-01-17 19:59:05 +00:00
Arnaud Dezandee
4ba06c0ec7
feat: add terraform registry providers and modules downloads (#10793) 2025-01-13 18:30:53 +00:00
Niko Diamadis
41d072e1c9
Renew [Mastodon] docs and improve parameter handling (#10789)
* refactor: handle parameter as domain and not url

* docs: update Mastodon documentation

* test: adapt Mastodon tests to changes

* style: replace substring expressions with RegEx

Co-authored-by: chris48s <chris48s@users.noreply.github.com>

---------

Co-authored-by: chris48s <chris48s@users.noreply.github.com>
2025-01-05 16:20:11 +00:00
Niko Diamadis
2c653013c8
Support [Matrix] summary endpoint (#10782)
* feat: add support for Matrix summary endpoint

* docs: update Matrix documentation

* refactor: abstract logic into more functions

* refactor: revert custom timeout for tests

* test: add test for fetchMode override on matrix.org

* fix: validate the fetchMode value

* docs: extend fetchMode description

* fix: add await keywords

* clarify test description

---------

Co-authored-by: chris48s <git@chris-shaw.dev>
2025-01-03 10:20:55 +00:00
chris48s
de1382d44d
use metric() in [coderabbit] badge (#10779) 2025-01-01 16:07:22 +00:00
chris48s
3daef194fa
cache matrix badges for 4 hours (#10778) 2025-01-01 16:07:16 +00:00
Danny Yang
bf91e268d6
Add [PypiTypes] badge (#10774)
* add python typing badge

* prettier

* Update services/pypi/pypi-typing.service.js

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>

* address comments

* rename

* fix test

---------

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
2024-12-31 16:33:36 +00:00
LitoMore
85b44b9152
feat(endpoint-badge): add logoSize support (#10132) 2024-12-31 15:45:39 +00:00
chris48s
c567f6cde4
Migrate to ESLint 9 (#10762)
* update ESLint related packages

* migrate to flat config format

* Fix prefer-const error

Fixes
'overrideLogoSize' is never reassigned. Use 'const' instead

* remove irrelevant eslint-disable comment

These comments came from a swizzled upstream
component but never did anything in our codebase.

ESLint 9 does not allow disable comments
for rules that are not registered.

* remove irrelevant eslint-disable comments

These were here because in the past we were applying
mocha lint rules to files which contained no tests

ESLint 9 now flags eslint-disable comments
that aren't doing anythings

* remove irrelevant eslint-disable comment

ESLint 9 now flags eslint-disable comments
that aren't doing anything

* there are no .tsx files in our code any more

* include .mjs files in linting and formatting

* update sort-class-members rule for openApi property

and update the handful of files violating it
2024-12-31 13:54:25 +00:00
chris48s
7108e08670
use isDecimalPercentage in tests for github/lab top lang (#10752) 2024-12-31 13:25:38 +00:00
Pierre-Yves Bigourdan
b4c21fd65d
Fix [JiraSprint] tests (#10746)
* Fix [JiraSprint] tests

* Switch to https URLs
2024-12-30 16:38:02 +00:00
Aravind Putrevu
cb309028db
Add [Coderabbit] PR Stats service and tests (#10749)
* Add Coderabbit PR Stats service and tests

- Implemented a new service `CoderabbitStats` to fetch and display pull request statistics from the CodeRabbit API.
- Created a corresponding tester file to validate the service's functionality, including tests for valid repositories, repository not found, and server errors.
- The service returns a badge with the number of PRs and appropriate error messages based on the API response.

This addition enhances the analysis capabilities of the application by integrating CodeRabbit statistics.

* Refactor CoderabbitStats service to track reviews instead of PRs

- Updated the service to fetch and display the number of reviews from the CodeRabbit API, changing the schema and badge labels accordingly.
- Modified the tester file to reflect the new endpoint and expected responses, including regex for message validation.
- Enhanced error handling in the service to return more descriptive error messages for invalid repositories and server errors.

This change improves the accuracy of the statistics provided by the service, aligning it with the intended functionality of tracking reviews.

* Enhance CodeRabbitStats service and tests

- Updated the CodeRabbitStats service to include OpenAPI documentation and improved error handling for repository not found scenarios.
- Changed badge label from 'CodeRabbit' to 'CodeRabbit Reviews' for clarity.
- Modified the tester file to reflect the new badge format and error messages, ensuring consistency with the service updates.
- Adjusted regex patterns for message validation in tests.

These changes improve the usability and accuracy of the CodeRabbit statistics service.

* Update services/coderabbit/coderabbit-stats.tester.js

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>

* Addressed codereview comments, changed tests.

* Fix label casing in CodeRabbitStats service and tests

* Update services/coderabbit/coderabbit-stats.service.js

Co-authored-by: chris48s <chris48s@users.noreply.github.com>

* Update CodeRabbitStats service and tests to improve error messaging

- Changed example section in CodeRabbitStats service from 'github, gitlab, bitbucket' to 'github' as per review comment.
- Updated error message for 404 response to 'provider or repo not found', to reflect the right code.

* Added github, gitlab, bitbucket to provider.

* Changing names to match the service name, removing unneeded test.

---------

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
2024-12-29 16:35:31 +00:00
Jeevan Joshi
0cbc1319ce
add [PUB] downloads badge (#10745)
* add PUB downloads badge

* test PUB downloads badge

* add PUB monthly downloads badge

* test PUB monthly downloads badge

* revert color override
2024-12-23 09:47:17 +00:00
Brijesh Kumar
f643515ee1
Add [GitLab] Top Language Badge (#10750)
* Add: GitLab Top Languages Badge

* Fix: Doc heading

* Add: Test cases + Rename service

* Update: Test URL

* Update: Requested Changes
2024-12-20 10:49:46 +00:00
chris48s
21a059d9a8
provide a non-repository scoped version of [githubcodesearch] (#10733)
and redirect /search/user/repo/q
to /search?query=q%20repo:user/repo

Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
2024-12-15 20:16:19 +00:00
chris48s
fb816ecf93
Upgrade to Chai 5.x (#10732)
* remove chai-string plugin

* upgrade chai and sinon-chai

* update chai imports

* migrate badge-maker tests to ESM
2024-12-11 19:28:45 +00:00
Hervé Boutemy
075f1b450e
[ReproducibleCentral] add Reproducible Central in Dependencies (#10705)
* add Reproducible Central in Dependencies

* first updates based on feedback

* use new artifact-level json data = map version -> RB result

* fix unit tests

* improve code with provided snippets: thank you

* add description
2024-12-11 08:07:39 +00:00
chris48s
151c70dd17
Add ability to format bytes as metric or IEC; affects [bundlejs bundlephobia ChromeWebStoreSize CratesSize DockerSize GithubRepoSize GithubCodeSize GithubSize NpmUnpackedSize SpigetDownloadSize steam VisualStudioAppCenterReleasesSize whatpulse] (#10547)
* add renderSizeBadge helper, use it everywhere

- switch from pretty-bytes to byte-size
- add renderSizeBadge() helper function
- match upstream conventions for metric/IEC units
- add new test helpers and use them in service tests

* unrelated: fix npm unpacked size query param schema

not strictly related to this PR
but I noticed it was broken

* chromewebstore: reformat size string, test against isIecFileSize
2024-12-01 19:53:26 +00:00
jNullj
e8e253d21e
remove obsolete [CratesSize] test for null size (#10688)
* remove obsolete test for version without size

changes upstream removed all null crate_size
see also rust-lang/crates.io#9926

* remove null handling in CratesSize service
2024-11-26 21:01:29 +00:00
jNullj
60aa530966
fix [DockerVersion] service test (#10690)
* Update docker version tester to check Python instead of Memcached

Memcached tags don't follow semver, might fail depending on which  tag was last added.
Python seems to follow semver for all tags.
fixes #10689

* Update docker version tester to check docker-dev instead of python

its a depricated image and is not expected to change tags
tag is semver

* Update docker version tester to check example-voting-app-vote

deprecated yet by docker, i think we can count on that to be stable
2024-11-26 20:33:46 +00:00
chris48s
5cdef88bcc
Add renderDateBadge helper; affects [aur BitbucketLastCommit chrome date eclipse factorio galaxytoolshed GiteaLastCommit GistLastCommit GithubCreatedAt GithubHacktoberfest GithubIssueDetail GithubLastCommit GithubReleaseDate GitlabLastCommit maven npm openvsx snapcraft SourceforgeLastCommit steam vaadin visualstudio wordpress] (#10682)
* add and consistently use parseDate and renderDateBadge helpers

also move

- age
- formatDate
- formatRelativeDate

to date.js

* fix bug in wordpress last update badge

* validate in formatDate() and age()

it is going to be unlikely we'll invoke either of these
directly now, but lets calidate here too

* remove unusued imports

* reverse colours for galaxy toolshed
2024-11-17 13:15:28 +00:00
chris48s
4132ca2e7e
Add blog post about token pool, improve 'authorise our app' CTA (#10683)
* Add blog post about token pool, improve 'authorise our app' CTA

* simplify first sentence
2024-11-16 16:50:04 +00:00
chris48s
cbb7ab5e8b
reduce overhead of NPM Last Update badge; test [npm] (#10666)
* reduce overhead of [NpmLastUpdate] badge

* use buildRoute for version without tag
2024-11-13 19:02:48 +00:00
chris48s
2bd926e65f
rename postfix param to suffix (#10667) 2024-11-11 19:34:08 +00:00
jNullj
04638ab0ee
Refactor - use renderVersionBadge - part 4 [githubrelease githubtag] (#10656)
* feat: add forcePrerelease option to renderVersionBadge function

Sometimes API would indicate if a version is pre-release while the version number does not have to be semantically a prerelease like in github-release service.
We don't use a isPrerelease that can also force a non-preleases as we trust here developer semantic over API tagging.

* refactor: GithubRelease to use renderVersionBadge

* refactor: GithubTag use renderVersionBadge

* refactor: change forcePrerelease to isPrerelease
2024-11-11 19:16:14 +00:00
jNullj
4d203e1937
fix [githubpipenv] service tests (#10658)
* fix failing test 'Locked version of VCS dependency'

replaced tested package which is missing with another example

* Add regex validator for commit hash format

* fix vcs dependency test to use pipenv's pypiserver
2024-11-11 19:15:35 +00:00
jNullj
8af909d118
fix [githubmanifest] service tests (#10657)
* Change badge label from 'version' to 'manifest' in GitHub manifest tests

* revert version label for failed paths
2024-11-10 13:09:27 +00:00
anatawa12
00d72da97e
add [WingetVersion] Badge (#10245)
* feat: add winget version badge

* chore: accept dotted path instead of slashed

* test: add test for winget-version

* fix: remove debug code

* chore: use winget-specific version compare algorithm

* fix: support latest and unknown

* fix(winget/version): trailing '.0' handling is incorrect

* fix(winget/version): latest returns last newest version instead of the first newest version

* fix(winget/version): confusing subpackage and version name

* fix(winget/version): example for latest is incorrect

* add a couple of extra test cases for latest()

---------

Co-authored-by: chris48s <git@chris-shaw.dev>
2024-11-04 19:05:32 +00:00
usr3
4ec62fa445
Fix broken URL for pingpong.one (#10655)
Fix broken URL for https://pingpong.one for uptime status monitoring.
2024-11-04 11:40:03 +00:00
Pierre-Yves Bigourdan
57520a974f
Remove [Nuget MyGet] color tests (#10654) 2024-11-02 18:34:25 +00:00
Ambati Mohan Kumar
8c7872a666
[npm] - Last update badge added (#10641)
* Added npm last update badge

* extended NpmBase class instead of BaseJsonService.

* added scoped packages to last update.

* introduced additionalQueryParamSchema

this is to add other query params schema, other than the one present in NpmBase.

* removed version query param

* in absence of modified date, it'll fetch created.

* removed version query param.

* added dist-tags.

* Update services/npm/npm-last-update.service.js

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>

* refactored handle method for dist-tags.

* Update services/npm/npm-last-update.service.js

Co-authored-by: chris48s <chris48s@users.noreply.github.com>

* added date validation check.

* added date validation check.

* added date validation check.

---------

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
2024-11-02 17:37:07 +00:00
Pierre-Yves Bigourdan
ad82f7647a
Add YouTube-specific privacy notes (#10646) 2024-11-02 11:20:57 +00:00
chris48s
20ae47e5ff
cleanly handle null or undefined result from jsonpath-plus (#10645) 2024-11-02 09:50:34 +00:00
jNullj
cc90c190f2
Refactor - use renderVersionBadge - part 3 [luarocks gitlab nuget feedz] (#10630)
* Refactor luarocks to use renderVersionBadge

Loarocks does not appear to have version conventions and there are no issues in history that require usage of existing color usage.
For better consistency use color scheme as the rest of the badges.

Also add scm and cvs as preview in renderVersionBadge

* add missing test for version color formatter

* refactor nuget to use renderVersionBadge

* Refactor GitlabTag to use renderVersionBadge

* add comment about non-standard render of coljarsVersion

* Refactor FeedzVersionService to use renderVersionBadge from version.js

* Refactor nuget.tester.js to remove unnecessary version tests

* add missing label in gitlab-tag.spec
2024-10-27 13:35:03 +00:00
Ambati Mohan Kumar
5e40080099
[Scoop] Added scoop-license badge. (#10627)
* scoop-license service is added.

* refactored scoop badges - added scoop base

* refactor - description changed to base class.

* refactor - description changed to base class.

* Update services/scoop/scoop-license.tester.js

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>

* refactor - buckets variable is moved to base class, also updated tester with createTestService.

* moved queryParamSchema to base class.

---------

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
2024-10-25 16:35:16 +00:00
Aiden Gardner
4e4e3f82c6
[Chromewebstore] Extension size & last updated (#10613)
* Bump webextension-store-meta

* Add extension last updated

* Add extension size

* Run linter

* Rename last updated badge
2024-10-21 08:22:43 +00:00
jNullj
04f4fbd156
Deprecate HackageDeps service (#10618)
HackageDeps will allways return a landing page with 200 and no text about outdated packages.
The site is down and looking for someone to take over.
Therefor api information is false and non functional.
2024-10-20 20:05:23 +00:00