* 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>
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
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.