Is there a way to specify the branch Tree while using github as the backend for netlify CMS?

I’m using netlifyCMS and I’ve just added github authentication which works alright. The issue is when I try accessing my collection, all of them are empty and the reason is the github API request being made to read the content is wrong. Here is the GET request being made https://api.github.com/repos/CodeForAfrica/ui/git/trees/main:content/donors However, since I’m in a monorepo the path should be ..trees/main:apps/codeforafrica/content/donors

The only location I see the branch being set is in the config file

backend: {
    name: "github",
    branch: "main",
    repo: "CodeForAfrica/ui",
    proxy_url: "http://localhost:8081/api/v1", // Set proxy to work on local repo
  },

If I try doing

backend: {
    name: "github",
    branch: "main:apps/codeforafrica",
    repo: "CodeForAfrica/ui",
    proxy_url: "http://localhost:8081/api/v1", // Set proxy to work on local repo
  },

The request is now

https://api.github.com/repos/CodeForAfrica/ui/git/trees/main:apps/codeforafrica:content/donors

Which is wrong. Any ideas on how to resolve this?

I’m still struggling with this. Any help on this?

Make sure your collections and and file paths are from the root of the repo, not the root of the project directory.

Incorrect: content/badges
Correct: apps/codeforafrica/content/badges