plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[feat] Use GH Actions to compile a repo summary that can be downloaded directly through GH pages

Open chrisguida opened this issue 1 year ago • 4 comments

from @cdecker: Any chance we can use GH Actions to compile a repo summary that can be downloaded directly through GH pages (saves the SSH connection overhead, and does not need a full (recursive) clone)? That'd be perfect to keep the repo metadata sync minimal and quick. (see the sparse crates.io metadata refresh deployed in 1.71 as an example of what the advantages could be).

cc @endothermicdev

chrisguida avatar Feb 09 '24 19:02 chrisguida

I imagine this would be fairly easy to implement with the badges branch @sip-21 added to deploy the CI badges.

What format do we want the metadata to be in?

cc @endothermicdev Guessing this is for reckless?

chrisguida avatar Jun 12 '24 03:06 chrisguida

This wasn't intended for reckless, but it could be useful if we had it.

endothermicdev avatar Oct 12 '24 16:10 endothermicdev

@endothermicdev thanks! Can you provide a bit more detail as to what this would be useful for, what the design would look like and/or how to test it? I can probably make something but I need more detail.

chrisguida avatar Oct 12 '24 19:10 chrisguida

This could be useful when looking to update a plugin. Reckless could fetch this data and skip fetching the whole repository if there's no update to a plugin we care about. A last-modified date and either a checksum or the last commit affecting each plugin would be useful here. The benefit is that the github api request limit is rather low if you're not authenticated, so this could be lighter weight / quicker than fetching the whole repo on each check.

endothermicdev avatar Oct 28 '24 15:10 endothermicdev