Commit Graph
345 Commits
Author SHA1 Message Date
Pierre-Yves Bigourdan 1b1cf043ce Retry on [GitHub] 401 error codes (#11933)
* Retry on [GitHub] 401 error codes

* Fix auth service test
2026-06-17 11:26:21 +02:00
Pierre-Yves Bigourdan dffd223ef4 Add telemetry when GitHub token is removed (#11922) 2026-06-13 19:03:16 +00:00
dependabot[bot]andjNullj d4acd740ac chore(deps): bump got from 14.6.6 to 15.0.5 (#11848)
* chore(deps): bump got from 14.6.6 to 15.0.5

Bumps [got](https://github.com/sindresorhus/got) from 14.6.6 to 15.0.5.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](https://github.com/sindresorhus/got/compare/v14.6.6...v15.0.5)

---
updated-dependencies:
- dependency-name: got
  dependency-version: 15.0.5
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* migrate got promise.cancel to AbortController

breaking changes of got v14 -> v15 dropped cancel() and replaced with AbortController signal

* tests: replace 'undici' FormData with native FormData

due to got migration from v14 -> v15 usage of non native FormData is unsupported.

* fix: url usage in got.post

* fix: adjust clock tick duration in metrics test

* improve test robustness

use a promise to wait for custom metrics push to resolve rathrer then rely on timers

* fix: move abortController from function to fetch instance

* remove old comment

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
2026-06-01 19:54:50 +00:00
jNullj cb34c2fb62 refactor: rename deprecatedService to retiredService [*****] (#11803)
* refactor: rename deprecatedService to retiredService

- Updated all instances of deprecatedService to retiredService in service implementations, tests, and documentation.
- Changed attribute names from isDeprecated to isRetired in relevant schemas and service definitions.
- Adjusted tests and documentation to reflect the new terminology and ensure consistency.

* docs: rename deprecating-badges.md to retiring-badges.md

* refactor: rename files deprecated-service to retired-service

* refactor: update terminology from deprecated to retired in badge documentation
2026-05-10 23:11:05 +03:00
jNullj 2c25b780f8 change deprecated badge messages to 'retired badge' [Bit Codeclimate Codeship Coincap DockerCloud GithubWorkflowStatus Hackage NostrBand Pub Security-Headers VisualStudioAppCenter VisualStudioMarketplace Wikiapiary] (#11798)
* change deprecated badge messages to 'retired badge'

- reduce confusion over deprecated badge source (badge, shields, endpoint service, user's service)
- reduce length of message to reduce traffic

update all deprecated services and base class code in a follow-up commit after discussion.

see https://github.com/badges/shields/pull/11792#issuecomment-4229267483

* update default deprecation message to 'retired badge'

* update deprecated badge messages to 'retired badge' in tests
2026-04-12 22:15:50 +00:00
Mohammad Ashif iqbal 647dbe57fe fix: strip build metadata suffix from packageManager field (fixes #9514) [GithubPackageJson] (#11782) 2026-04-05 11:37:52 +00:00
Mohammad Ashif iqbal eaacc60285 feat: add GitHub branch count badge (fixes #11283) (#11781) 2026-04-05 11:34:40 +00:00
jNulljandPierre-Yves Bigourdan 28839b2502 add not-planned and duplicate to issue state to [GithubIssueDetail] (#11666)
* add not-planned and duplicate to issue state to [GithubIssueDetail]

Fixes GitHub issues/PRs - Support the "not planned" state
Fixes #11662

* fix: replace underscore with space in state reason response transformation

* fix: tests after not_planed replaced by not planned

* fix: update issue state color key from not_planned to not planned

* improve testing, forever closed

Co-authored-by: Pierre-Yves Bigourdan <10694593+PyvesB@users.noreply.github.com>

* remove redundent condition

---------

Co-authored-by: Pierre-Yves Bigourdan <10694593+PyvesB@users.noreply.github.com>
2026-02-08 19:12:18 +00:00
Yihang HuangandPierre-Yves Bigourdan 9d4bd96dc1 Fix [GitHub] issue detail merged state for PRs (#11642)
* Fix [GitHub] issue detail merged state for PRs

* Update services/github/github-issue-detail.service.js

Co-authored-by: Pierre-Yves Bigourdan <10694593+PyvesB@users.noreply.github.com>

* Update services/github/github-issue-detail.service.js

Co-authored-by: Pierre-Yves Bigourdan <10694593+PyvesB@users.noreply.github.com>

---------

Co-authored-by: Pierre-Yves Bigourdan <10694593+PyvesB@users.noreply.github.com>
2026-02-03 07:00:55 +00:00
Pierre-Yves BigourdanandjNullj 3661948bf5 Deprecate scarcely used redirectors, test [*****] (#11584)
* Deprecated scarcely used redirectors

* fix: update missing deprecated test for resharper/vpre (#1705)

---------

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
2026-01-05 23:42:45 +01:00
Pierre-Yves Bigourdan 14de8533e4 Add link to [GithubFollowers] badge (#11590) 2026-01-04 21:46:54 +00:00
Pierre-Yves Bigourdan 309615c1e6 Improve check runs documentation (#11612) 2026-01-03 15:22:23 +00:00
programminghoch10 89c786fb2b Prefer published_at in github-release-date service (#11616)
`created_at` refers to the creation time of the tag which the release points to, while `published_at` refers to the release publish time itself.
In cases where the same (old) tag is reused across multiple publishes, when using `created_at` the badge will show an outdated date, while `published_at` would show the correct release publish date.
2026-01-01 20:13:22 +00:00
Pierre-Yves BigourdanandjNullj fbe433c263 Add issueUrl parameter to deprecatedService helper and remove Deprecated error (#11534)
* Add issueUrl parameter to deprecatedService helper

* refactor test response for GithubWorkflowStatus into a const

* Update variable name

---------

Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
2025-12-17 22:37:59 +00:00
Pierre-Yves Bigourdan aafb54c4df Leverage expectRedirect in all redirector tests (#11525) 2025-11-27 09:09:30 +01:00
Pierre-Yves Bigourdan d3db94d637 Separate GitHub token metrics and debug logging (#11504) 2025-11-15 22:25:49 +00:00
Pierre-Yves Bigourdan 2095c5c218 Fix GitHub token pool debug logging and add metrics (#11500) 2025-11-15 10:59:51 +00:00
Pierre-Yves Bigourdan 96c235705f Increase [GithubTotalStar] test timeout (#11486) 2025-11-08 18:14:35 +00:00
Pierre-Yves Bigourdan 8ccf0ac734 Fix incorrect Joi.allow usage, test [DocsRs GithubIssueDetail GithubRelease GithubTag Nycrc OSSFScorecard Sonar W3cValidation] (#11485) 2025-11-08 18:14:08 +00:00
Pierre-Yves Bigourdan 6bcc81f374 Fix broken redirector tests (#11439) 2025-10-30 06:56:00 +00:00
Pierre-Yves Bigourdan 9ed1c252f4 Remove form-data dependency (#11438) 2025-10-25 14:48:24 +00:00
Pierre-Yves Bigourdan 959e1c8bec Replace query-string with qs (#11425) 2025-10-17 17:35:14 +00:00
ReenigneArcher 1db49c7d3d Add displayAssetName option to [GitHubDownloads] badge (#11415)
* Add displayAssetName option to GitHub downloads badge

* Refactor badge expectations to use isMetric
2025-10-09 21:33:02 +00:00
Pierre-Yves Bigourdan 6fd0879bf0 Fix [GithubIssueDetail] test (#11388) 2025-09-28 16:09:46 +00:00
jNullj e93c8b69aa Update labels of deprecated services [GithubWorkflowStatus PubPopularity] (#11369)
* update pub-popularity deprecation label

updated docs now require deprecated service labels to show service name.

Fixes #11368

* update GithubWorkflowStatus deprecation label

comply with new doc requirement for deprecatoin label showing service name.

Fixes deprecation label compliance with updated docs
Fixes #11368
2025-09-27 19:59:08 +00:00
Pierre-Yves Bigourdan 1f9382ed27 [GitHubHacktoberfest] 2025 support (#11353) 2025-09-24 08:10:40 +00:00
jNulljandLitoMore 7be9cd399d docs: add note to [GithubContributors] about co-authors limitations (#11260)
* docs: add note to [GithubContributors] about co-authors limitations

* update syntax to use join

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

---------

Co-authored-by: LitoMore <LitoMore@users.noreply.github.com>
2025-08-05 23:54:39 +03:00
jNullj d8ccb0a57c fix: live test for [githubpipenv] wrong validation (#11053)
* fix: update message for Locked version of VCS dependency badge to use version validation

* revert to VCS deps

picked `https://github.com/ykdojo/editdojo/` as it seems to be real world example of somewhat popular repo with a VCS deps that is not often updated

* fix label

fix from prev commit
2025-05-09 08:34:22 +00:00
jNullj 5bea7c04b5 fix [githubpullrequestcheckstate] live tests - update pr num (#11054) 2025-05-05 18:06:16 +00:00
chris48s 7108e08670 use isDecimalPercentage in tests for github/lab top lang (#10752) 2024-12-31 13:25:38 +00:00
chris48sandccoVeille 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
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
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
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
Pierre-Yves Bigourdan d502e7031f [GitHubHacktoberfest] 2024 support (#10612) 2024-10-13 18:15:07 +00:00
chris48s dc57a8893c move go version badge to platform support category (#10444) 2024-08-15 22:39:07 +00:00
Pierre-Yves Bigourdan 1585d157c1 Cleanup unused bits and pieces (#10349) 2024-07-13 18:57:54 +00:00
chris48s e6c8d079c9 include gituhb contributors badge in docs site (#10337) 2024-07-09 14:11:14 +00:00
Pierre-Yves Bigourdan 81585acd6b Fix [GithubPullRequestCheckState] test (#10200) 2024-06-02 22:43:55 +02:00
Pierre-Yves Bigourdan f57c4edbb9 Remove namedLogo from defaultBadgeData of non-social badges (#10195) 2024-05-27 20:34:38 +00:00
Marc Bernard 427b24c98a Update description of GitHub commit status badge (#10198)
* [GitHub] update description of commit status badge

* fix typo

* Add pull request check

* regex to english
2024-05-26 17:16:08 +02:00
Marc Bernard e43cb0c9b5 chore: fix spelling of GitHub in badge descriptions (#10199) 2024-05-26 09:16:39 +00:00
Marc Bernard 12f54f3375 Add [GithubCheckRuns] service (#7759)
* Add [GithubCheckRuns] service

* Adjust ref parameter

* Rework

* Prettier

* Prettier

* Function

* Prettier

* Change CR to LF

* Adjust after #9233

* Lint camelCase

* Fix camelCase

* Fix prettier

* Switch to openAPI spec for examples

* Fix type of parameters

* Fix too many brackets

* Lint

* Add optional name filter

* Update tests

* Remove logo
2024-05-25 10:35:25 +00:00
Marat Reymersandchris48s caea7597f9 [GitHubGoMod] Ignore comment after version (fixes #10079) (#10080)
* [GithubGoMod] Ignore comment after version (fixes #10079)

* add unit tests for GithubGoModGoVersion.transform

---------

Co-authored-by: chris48s <git@chris-shaw.dev>
2024-04-07 08:02:49 +00:00
chris48s 3c60625c51 improve performance of [GithubLastCommit] [GitlabLastCommit] [GiteaLastCommit] (#10046)
* improve performance of last commit badges

* pass param in the right place
2024-03-25 15:12:28 +00:00
ReubenFrankelandchris48s 4f141dfa84 [GithubLastCommit] [GitlabLastCommit] [GiteaLastCommit] Support file path for last commit (#10041)
* Support file path for GitHub last commit

* Support file path for GitLab last commit

* Support file path for Gitea last commit

* Define common `relativeUri` validator

* Sort imports

* Add more tests for path variations

* Fix test name

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

* Update Gitea 404 message

* Handle case when no commits are returned for GitHub and GitLab

---------

Co-authored-by: chris48s <chris48s@users.noreply.github.com>
2024-03-25 12:10:04 +00:00