Open Theta-Dev opened 3 weeks ago
Attention: Patch coverage is 23.82353%
with 259 lines
in your changes missing coverage. Please review.
Project coverage is 35.90%. Comparing base (
832edbc
) to head (c907098
).
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hey, thanks for your work on this! Should we mark as draft until #680 is merged (since this PR is based on those changes?)
Okay. It still needs some documentation work done, since there is now a new URL config option to better support self-hosted instances.
Thanks a lot for #680, it is merged now which means we can resume the work on this PR!
Description
Refactoring of the
remotes
module to make the integration of new code forges easier.Motivation and Context
When I added Gitea integration (#680), I noticed a lot of redundant code blocks in the application which have to be copied for every code forge integration added. So I tried to rework the system to allow adding new remotes with minimal changes to the application.
Adding a new application now only consists of the following steps:
remote/<name>.rs
config.rs
and add it to the REMOTE_KINDS arrayThis obviously comes with breaking changes to the API of the
remote
module.How Has This Been Tested?
Screenshots / Logs (if applicable)
Types of Changes
Checklist: