GI

github

Open Source DevelopmentProductivity

Full-featured GitHub plugin for OpenCode - manage repositories, issues, pull requests, releases, workflows, and more

github git repositories issues pull-requests ci-cd actions

Quick Install

npm install @openpets/github
pnpm add @openpets/github

Required Environment Variables

  • GITHUB_TOKEN

    GitHub Personal Access Token with repo, workflow, and gist scopes

Example Queries

list my repositories
show open issues in owner/repo
get pull request #123 from owner/repo
search for typescript repositories with more than 1000 stars
list workflow runs for owner/repo
show my notifications
get file contents from owner/repo/path/to/file
create an issue in owner/repo
list branches in owner/repo
show recent commits in owner/repo

Usage Scenarios

issue workflow

  1. 1 list open issues in owner/repo
  2. 2 get issue #1 from owner/repo
  3. 3 add a comment to issue #1
  4. 4 close issue #1

pr workflow

  1. 1 list open pull requests in owner/repo
  2. 2 get pull request #1 details
  3. 3 merge pull request #1

repo exploration

  1. 1 get repo info for owner/repo
  2. 2 list branches in owner/repo
  3. 3 show recent commits
  4. 4 get file contents of README.md

search workflow

  1. 1 search for react repositories
  2. 2 search for issues labeled 'good first issue'
  3. 3 search for code containing 'createPlugin'

Use github with Your AI Assistant

This open source plugin works with OpenCode-compatible AI assistants including ChatGPT, Claude, Perplexity, and other LLM-powered coding tools. Install the plugin and start using natural language to interact with github.

Works with ChatGPT Works with Claude Works with Perplexity MCP Compatible