lumeland / cms

A framework-agnostic CMS for Deno
https://lume.land/cms/
MIT License
54 stars 5 forks source link

Fixes GitHub storage adapter #2

Closed revgum closed 6 months ago

revgum commented 6 months ago

The query parameter for this uses ref instead of branch (https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#get-repository-content--parameters). When using ref, the data and the sha returned will match the latest commit on the contents being queried. This allows the CMS to add a commit for every subsequent update to a given file.

Re: #1

oscarotero commented 6 months ago

Oh! I think that explains some issues I had with this. Thank you so much!