Github List Files Node - How to change branch?

Describe the problem/error/question

I’m using Github List node. I want to list files and directories from specific branch.

As you can see above - there is no option to change the branch.

Do you have any option to do it?
Is there any workaround for it?

Information on your n8n setup

  • n8n version: 1.117.2
  • Database (default: SQLite): PostgreSQL
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Linux based

Hello @Piotr_Sikora

I don’t think so.

Yes, you can use an HTTP request call

GET https://api.github.com/repos/{owner}/{repo}/contents/{path}?ref={branch}

For example:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.