Skip to content

v0.6.0: write ops + diff/comments view + repo file reader#6

Merged
corvid-agent merged 1 commit into
mainfrom
feat/v0.6.0-write-ops
May 21, 2026
Merged

v0.6.0: write ops + diff/comments view + repo file reader#6
corvid-agent merged 1 commit into
mainfrom
feat/v0.6.0-write-ops

Conversation

@corvid-agent
Copy link
Copy Markdown
Contributor

Summary

Make the plugin genuinely useful for agents driving real GitHub work, not just read-only summaries. The motivating bug: in CorvidLabs/merlin we saw the corvidagent Discord bot fall back to authenticated-failing web-fetch calls because the plugin couldn't surface PR diffs, comments, or file contents at a ref. This PR fills those gaps.

New surface

`prs`

  • `view [--diff] [--comments]` — append the unified diff and/or conversation comments + reviews.
  • `comment -b BODY` — post a PR comment.
  • `review ` — one of `--approve` / `--request-changes` / `--comment-review`, with `--body` (required for the latter two).
  • `merge ` — `--squash` (default) | `--merge` | `--rebase`.
  • `close ` / `reopen `.

`issues`

  • `view [--comments]` — append the issue's conversation.
  • `comment -b BODY`.
  • `close ` / `reopen `.

`repo` (new subcommand)

  • `view [-R OWNER/NAME] [--json]` — repo metadata.
  • `file [-R OWNER/NAME] [-r REF] [--json]` — read a file at any ref via `gh api repos/.../contents/...`. Works for private repos and arbitrary refs without needing a clone or a raw-URL token.

Test plan

  • `bash -n` on all scripts (matches the syntax CI job)
  • `shellcheck --severity=warning` clean across the whole `bin/` (matches the shellcheck CI job)
  • Smoke-tested manually: `repo view --json`, `repo file README.md -R CorvidLabs/merlin`, `prs view 522 --diff`
  • CI green (shellcheck + bash syntax workflows)

Make the plugin genuinely useful for agents driving real GitHub work,
not just read-only summaries. Closes the gap where Merlin agents kept
falling back to authenticated-failing `web-fetch` calls because the
plugin couldn't surface diffs, comments, or file contents at a ref.

prs:
  - `view` gets --diff and --comments append flags.
  - `comment <num> -b BODY` posts a PR comment.
  - `review <num> --approve | --request-changes | --comment-review`
    submits a review (--body required for the latter two).
  - `merge <num>` with --squash (default) | --merge | --rebase.
  - `close <num>` and `reopen <num>`.

issues:
  - `view` gets a --comments flag.
  - `comment <num> -b BODY`, `close <num>`, `reopen <num>`.

repo (new subcommand):
  - `view [-R OWNER/NAME] [--json]` — repo metadata.
  - `file <path> [-R OWNER/NAME] [-r REF] [--json]` — read a file's
    contents at any ref. Wraps `gh api repos/.../contents/...` and
    decodes the base64, so it works for private repos and arbitrary
    refs without needing a clone or a raw-URL token.

Router and plugin.toml description updated; README + CHANGELOG follow.
Bash strict-mode safe (empty-array expansion uses scalars), shellcheck
clean at --severity=warning.
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@corvid-agent corvid-agent merged commit 8ea6141 into main May 21, 2026
5 checks passed
@corvid-agent corvid-agent deleted the feat/v0.6.0-write-ops branch May 21, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant