* 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>
This moves a few helpers from `lib/` to `services/`:
build-status.js
build-status.spec.js
color-formatters.js
color-formatters.spec.js
contributor-count.js
licenses.js
licenses.spec.js
php-version.js
php-version.spec.js
text-formatters.js
text-formatters.spec.js
version.js
version.spec.js
And one from `lib/` to `core/`:
unhandled-rejection.spec.js
The diff is long, but the changes are straightforward.
Ref #2832
This will definitely save time, and ensure more uniformity.
It moves the `createServiceTester()` calls to a different place from where I'd like them, though I'm happy to have them checked by the linter.
Closes#2701
This is a mid-sized PR that adds query param validation to BaseService and updates most of the services which use query param validation to use it. There are a couple minor tweaks I made along the way.
Fix#2676
Fixes#2876 with @paulmelnikow's suggestion
Moved imports of `ServiceTester` and `createServiceTester` to a separate file so that dev dependencies are not imported by service classes.
Continue to implement #2698:
- Add `core/base-service/index.js` (but hold off on moving the things it imports)
- Add shortcuts in `services/index.js` for Base*Service, errors, and deprecatedService. This file will be streamlined later to avoid cluttering it with rarely used bits.
- Apply consistent ordering of imports and use of `module.exports` in testers.
- Remove some renaming of imports.
- Remove obsolete tests here and there.
This starts the rewrite of the dynamic badges. I've pulled into BaseService an initial version of the query param validation from #2325.
I've extended from BaseJsonService to avoid duplicating the deserialization logic, though it means there is a bit of duplicated code among the three dynamic services. The way to unravel this would be to move the logic from `_requestJson` and friends from the base classes into functions so DynamicJson can inherit from BaseDynamic. Would that be worth it?
This introduces a regression of #1446 for this badge.
Close#2345