Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
radhakrishna2331
Contributor II
Contributor II

List Repository Contents other than main branch

I have a requirement to list repository contents in Qlik Automation based on a user-selected branch in GitHub. Currently, the "List Repository Content" action retrieves files from the default main branch only. I don’t see an option to pass a branch parameter to this action.

How can I retrieve repository contents from a branch other than main? Any suggestions would be greatly appreciated.

Labels (1)
1 Solution

Accepted Solutions
hugo_andrade
Partner - Specialist
Partner - Specialist

@radhakrishna2331 ,

That's nice! 

I would use the native Qlik Cloud connector for Github for the majority of the calls. For everything that you can't do using it, create a REST connection to the endpoint.

These are particularly useful:

Live and Breathe Qlik & AWS.
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

View solution in original post

5 Replies
hugo_andrade
Partner - Specialist
Partner - Specialist

Hi @radhakrishna2331 ,

This endpoint doesn't accept branch as parameter. I just checked the official Github documentation and it is aligned with that too: https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28

 

Live and Breathe Qlik & AWS.
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

radhakrishna2331
Contributor II
Contributor II
Author

Hi @hugo_andrade ,

Thank you for taking the time to analyze and respond to the post.

My goal is to provide developers with an option to select repository contents (including comments) from GitHub via a dropdown and retrieve them into Qlik Cloud based on their selection—especially in cases where the published version has issues.

Is there a way to achieve this?

Currently, we are considering storing only production versions in the main branch, and saving versions from other workspaces in separate branches.

Any suggestions or best practices for pushing apps to the main space would be greatly appreciated.

hugo_andrade
Partner - Specialist
Partner - Specialist

@radhakrishna2331 ,

That's nice! 

I would use the native Qlik Cloud connector for Github for the majority of the calls. For everything that you can't do using it, create a REST connection to the endpoint.

These are particularly useful:

Live and Breathe Qlik & AWS.
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

radhakrishna2331
Contributor II
Contributor II
Author

@hugo_andradeThank you very much. I truly appreciate your valuable insights.

hugo_andrade
Partner - Specialist
Partner - Specialist

My pleasure! Always great helping the community.

Get started with the existing connector. If you run into issues with REST, create a new post with the problem and tag me. I will be notified and will try to help you.

Good luck!

Live and Breathe Qlik & AWS.
Follow me on my LinkedIn | Know IPC Global at ipc-global.com