nhz-io / github-chatgpt-plugin

ChatGPT plugin to interact with anything in GitHub. Install “Chat With Code” from the ChatGPT plugin store.

Home Page:https://gh-plugin.teammait.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

Chat with Code is an official ChatGPT plugin that let's you interact with everything in GitHub. Everything, including repos, issues, commits, file contents, and more.

How it works

Chat with Code essentially is a "meta plugin" where the API endpoints are completely fluid, and it depends on ChatGPT to decide which functions to call from the Octokit library.

An example flow:

  • The plugin hits an endpoint /api/repo (poorly named, should be changed to something more generic).
  • Depending on what the users request is in chat, ChatGPT decides which function should be called, and what attributes should be included.
Example chat:

User: describe aavetis/github-chatgpt-plugin

ChatGPT:
- use repos.get function
- relevant attributes: {
  owner: "aavetis",
  repo: "github-chatgpt-plugin"
  }
  • The plugin endpoint then responds with the raw data from GitHub API according to that function call.
  • ChatGPT uses the raw data to construct its response to user.

Finding the plugin

image

Note: Installing the plugin will direct you to an optional OAuth page to login with GitHub. Authenticating allows you to interact with private repos, but is completely optional.

Well-known

See public/.well-known for plugin instructions and API spec.

About

ChatGPT plugin to interact with anything in GitHub. Install “Chat With Code” from the ChatGPT plugin store.

https://gh-plugin.teammait.com


Languages

Language:TypeScript 89.8%Language:JavaScript 5.8%Language:CSS 4.4%