v0.6.0: write ops + diff/comments view + repo file reader#6
Merged
Conversation
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.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-fetchcalls because the plugin couldn't surface PR diffs, comments, or file contents at a ref. This PR fills those gaps.New surface
`prs`
`issues`
`repo` (new subcommand)
Test plan