Skip to content

Conversation

@lukemassa
Copy link
Contributor

@lukemassa lukemassa commented Nov 30, 2025

what

Move each vcs into their own subpackage of vcs.

why

I always found it a bit confusing that some VCSs (bitbucketcloud, bitbucketserver, and recently gitea) had their own packages, whereas github, azuredevops, and gitlab lived side-by-side in vcs. Especially as github has become bigger and more complicated, it makes sense to make these subpackages.

This also makes it more clear where we think we're testing "general VCS behavior" but in fact are testing github specific behavior.

Finally, this can help move us more towards the "plugin" architecture for VCSs that has been discussed in other places, by first providing this isolation.

tests

This is a pure refactor; passing tests should be sufficient.

references

Relates to #5574

@lukemassa lukemassa changed the title Move vcs code into own packages chore: Move vcs code into own packages Nov 30, 2025
@lukemassa lukemassa marked this pull request as ready for review November 30, 2025 21:27
@dosubot dosubot bot added go Pull requests that update Go code refactoring Code refactoring that doesn't add additional functionality labels Nov 30, 2025
@lukemassa lukemassa marked this pull request as draft December 2, 2025 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code provider/azuredevops provider/github provider/gitlab refactoring Code refactoring that doesn't add additional functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant