* 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
* 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
* 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>
* update packages
* add plugin to strip autolinks in code blocks
* fix all the documentation for MDXv3
* remove check-docusaurus-versions
in docusaurus 3 this is now a hard error, not just a warning
* port upstream change to Curl component
fixes performing the 'execute' action when pressing enter
* allow serviceData to override cacheSeconds with a longer value
* prevent [endpoint] json cacheSeconds property exceeding service default
* allow ShieldsRuntimeError to specify a cacheSeconds property
By default error responses use the cacheLength of
the service class throwing the error.
This allows error to tell the handling layer the maxAge
that should be set on the error badge response.
* add customExceptions param
This
1. allows us to specify custom properties to pass to the exception
constructor if we throw any of the standard got errors
e.g: `ETIMEDOUT`, `ECONNRESET`, etc
2. uses a custom `cacheSeconds` property (if set on the exception)
to set the response maxAge
* customExceptions --> systemErrors
* errorMessages --> httpErrors
* fix
* fix
* add unit test
* fixes based on review
* fix spec test
* fix info
* fix mr example
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* feat: add gitlab stars service
* add test case
* fix
* fix link
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* feat: add gitlab issues service
* fixes based on review
* fixes based on review
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* fix auth in gitlab contributors badge
* fix gitlab auth for badges that use fetchPaginatedArrayData()
* add a test covering fetchPaginatedArrayData auth
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* feat: add gitlab contributors service
* add validate and test case
* fix base on review
* remove 2 test case
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* feat: add GitLabRelease badge
* use single project route param
* add query param for date ordering
* add test for nested subgroup
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* feat: supported nested groups on gitlab pipeline status badge
* satiate the formatting gods
* use main as default branch
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* refactor: support groups on gitlab tag badge
* fix mocked test
* add nested subgroup test
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* 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>
* tests(GitlabPipelineStatus): fix not found service test
* docs: describe gitlab innaccessible message
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Add base for GitLab code coverage badge
* Change examples to repos which have implemented code coverage reporting
in GitLab UI
* Add tests for Gitlab Coverage badge
* Fix test data that was not changed
* Update code according to new branch detection
Signed-off-by: Hrishikesh Patil <hrishikeshpatil.754@gmail.com>
* Update docs and examples, make branch required option that was missed in
previous commit
Signed-off-by: Hrishikesh Patil <hrishikeshpatil.754@gmail.com>
* Apply suggestions from PR discussion
Signed-off-by: Hrishikesh Patil <hrishikeshpatil.754@gmail.com>
* Remove default value of branch param
Signed-off-by: Hrishikesh Patil <hrishikeshpatil.754@gmail.com>
* Apply further discussed changes to service
Signed-off-by: Hrishikesh Patil <hrishikeshpatil.754@gmail.com>
* Fix tests that were failing
Signed-off-by: Hrishikesh Patil <hrishikeshpatil.754@gmail.com>
* Add fetch and transform functions
Signed-off-by: Hrishikesh Patil <hrishikeshpatil.754@gmail.com>
* Add examples and tests for custom job name
Signed-off-by: Hrishikesh Patil <hrishikeshpatil.754@gmail.com>
* Add finishing touches
Signed-off-by: Hrishikesh Patil <hrishikeshpatil.754@gmail.com>
* Change to a working example
Signed-off-by: Hrishikesh Patil <hrishikeshpatil.754@gmail.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Add documentation for publicity state of pipelines
* Modify visual picture to be smaller and add red circle to mark important setting
* Adapt suggestion
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com>