@gwynnnplaine/pi-github

extensionmaintained

Read GitHub issues, PRs, diffs, checks & code from inside Pi — via the gh CLI. Chronological markdown, image extraction, PR review workflows.

by · v0.3.3 · published 1mo ago

$ pi install npm:@gwynnnplaine/pi-github
downloads/mo
85
stars
0
last push
1mo ago
open issues
0

Signals

license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

No downloads in the last 12 weeks.

README

@gwynnnplaine/pi-github

License Pi extension npm GitHub

Fork of the archived maria-rcks/pi-github, continued under @gwynnnplaine.

A simple, reliable GitHub tool for your agents. Wraps the gh CLI you already have.

  • Markdown-formatted output. LLMs read it far better than raw JSON.
  • Infers the repo from git remote origin, so neither you nor the agent fusses with owner/repo.
  • Handles pictures — lists and downloads image attachments from issues and PRs.

Just tell Pi review #1234 and it works.

Install

pi install npm:@gwynnnplaine/pi-github
# or
pi install git:github.com/gwynnnplaine/pi-github
# or
pi install /absolute/path/to/pi-github

Requires gh

  • Install gh and put it on PATH.
  • Authenticate once: gh auth login.
  • Skip owner/repo. They're inferred from git remote origin.

Use

Ask Pi in plain language. It routes to the github tool.

"review #1234"
"list open PRs"
"PR overview for 88 — files, reviews, checks"
"show the diff for src/index.ts in PR 88"
"read src/index.ts from main"
"search the repo for 'fetchThread'"

Pass owner/repo to target another repo; omit them to use the current one.

Actions

One tool, github. Pick an action — default is format.

ActionDoesScope
formatThread → chronological markdown. Filters: author, kind, since, until, containsissue / PR / discussion
list_issuesOpen issues, paginatedrepo
list_prsOpen PRs, paginatedrepo
list_imagesImage references in a threadthread
download_imageDownload one image by imageIdthread
list_changesChanged files + change IDsPR
get_changeOne file's diff by changeIdPR
list_participantsEveryone who touched the threadthread
list_review_commentsReview comments. Filters: author, path, since, untilPR
list_pr_commitsCommits in the PRPR
get_pr_commitOne commit's diff by commitShaPR
list_pr_checksCI / check statusPR
pr_overviewSummary: files + reviews + checks. Toggle with includeFiles/includeReviews/includeChecksPR
read_fileRemote file content. Options: startLine, endLine, refrepo
list_directoryRemote directory listing. Option: refrepo
search_codeCode search. Option: pathrepo
glob_filesMatch the repo tree by filePattern. Options: offset, limit, refrepo
search_commitsCommit history search by query, author, since, untilrepo

Params

  • owner, repo — optional; inferred from git remote origin.
  • id — thread number (issue / PR / discussion). Legacy alias number still works.
  • entityissue | pr | discussion. Auto-detected when omitted.

Links