Download the OpenAI yaml and add to your gpt or chat to begin fetching public Github repos. Clone this repo and self host using DenoDeploy to pull private Github repos using your PAT.
Screen.Recording.2024-08-03.at.2.48.54.PM.mov
This Deno server application uses the Oak framework to create a simple API for fetching and displaying the contents of a GitHub repository. The API exposes an endpoint to retrieve the contents of a specified repository, including files and directories, but excludes certain file types (e.g., images and videos).
- Fetch contents of a specified GitHub repository.
- Recursively retrieve and display directory contents.
- Exclude certain file types from retrieval.
- Return file contents in JSON format.
- Deno runtime installed. Install Deno
- A GitHub Personal Access Token (PAT) with access to the desired repositories.
GITHUB_PAT
: Your GitHub Personal Access Token.
-
Clone the repository:
git clone https://github.com/cameronking4/gh-repo-server.git cd gh-repo-server