Closed revgum closed 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.
ref
branch
sha
Re: #1
Oh! I think that explains some issues I had with this. Thank you so much!
The query parameter for this uses
ref
instead ofbranch
(https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#get-repository-content--parameters). When usingref
, the data and thesha
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