fettle icon indicating copy to clipboard operation
fettle copied to clipboard

Private Repository Support?

Open shellscape opened this issue 1 year ago • 2 comments
trafficstars

Hey there. Thanks for putting this together. Just curious if you've tested this on private repos. I realize that forks cannot be private, but Github has the ability to disconnect a fork from upstream to make a repo private. For the company I'm evaluating this for, we'd want to go that route.

shellscape avatar Jan 25 '24 02:01 shellscape

@shellscape I'm currently using this in a private repo. Since the repo is private we can't connect to the issues in GitHub, so we took the data that the code calls for and made it call our own API. Additionally, instead of doing a fetch call to the content of the file for the reports, we're calling the local file.

alexmgriffiths avatar Jul 19 '24 18:07 alexmgriffiths

To access the pages data instead of the repo data, edit the fetch call in src/services/hooks/useSystemStatus.tsx line 68

From:

    const response = await fetch(`https://raw.githubusercontent.com/mehatab/fettle/main/public/status/${key}_report.log`);

To:

const response = await fetch(`./status/${key}_report.log`);

Similar in src/services/hooks/useServices.tsx line 49

coolacid avatar Jan 15 '25 21:01 coolacid