RepoMate is a ChatGPT Plugin/Action for accessing and searching GitHub Repositories.
You could try it out right here (ChatGPT Plus required).
If you don't have a ChatGPT Plus subscription, please read about Assistants API and use https://repo-mate.api.naiv.fun
as your Assistant API endpoint.
- Sign up for Cloudflare Workers. The free tier is more than enough for most use cases.
- Install wrangler, the Cloudflare Workers CLI.
- Clone this project in any development environment and install dependencies with
npm install
. - Run
wrangler login
to login to your Cloudflare account in wrangler. - Run
wrangler deploy
to publish the plugin to Cloudflare Workers.
- Search repositories
- Fetch repository metadata
- Fetch the tree structure of the repository
- Fetch content of files in the repository
TODO:
- Replace
fetch
with Octokit.js. - Add support for shipping with GitHub Personal Token.
- Add optional authentication.