Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stores: Generic Git #594

Open
chilledtonic opened this issue Mar 21, 2023 · 1 comment
Open

Stores: Generic Git #594

chilledtonic opened this issue Mar 21, 2023 · 1 comment
Labels
enhancement New feature or request plugin-store Store plug-in
Milestone

Comments

@chilledtonic
Copy link

Is your feature request related to a problem?

There are a few existing store plugins for Git Repo providers - Github, Bitbucket, Gitea, and others - but all of these rely on the underlying API of the service the plugin is built for, which means if a git provider does NOT have a commit API - sr.ht being an example where the only way to commit is via a "git commit, git push" - that provider is unable to be used as a Git Store.

Describe the solution you’d like

While a plugin could be written exclusively for sr.ht that utilizes a toolkit like git-utils [1], I feel it makes more sense to develop a generic store plugin that commits and pushes to a repo cloned to the local file system. This would allow one store plugin to work with all providers that do not offer their own custom commit API.

[1] https://www.npmjs.com/package/git-utils

Describe alternatives you’ve considered

No response

Additional context

I'm curious why this hasn't been pursued already as a feature - are there any considerations on why this would not work before I start trying to develop the plugin?

@chilledtonic chilledtonic added the enhancement New feature or request label Mar 21, 2023
@chilledtonic
Copy link
Author

Digging deeper, it appears store-file-system could be modified to accomplish this goal

@paulrobertlloyd paulrobertlloyd added this to the Later milestone Jun 1, 2023
@paulrobertlloyd paulrobertlloyd added the plugin-store Store plug-in label Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugin-store Store plug-in
Projects
None yet
Development

No branches or pull requests

2 participants