Local GitHub CLI for commenting on issues and pull requests from the command
line — a sibling of slash-x and
slash-reddit.
Dependency-free single file. Uses the GitHub REST API with a personal access
token. (For full repo automation, the official gh CLI is great — this is a tiny
focused tool for the "drop a comment" engagement loop.)
cd ~/Projects/slash-github && npm link # exposes `slash-github` and `sgh`Create a token at https://github.com/settings/tokens (public_repo, or repo
for private), then:
export GITHUB_TOKEN=ghp_...
slash-github checkslash-github comment https://github.com/edihasaj/recall/issues/12 "Have you considered…"
slash-github comment edihasaj/recall#12 --file reply.md --json
slash-github read cli/cli#1| Command | Description |
|---|---|
comment <url> [text] |
Comment on an issue or PR |
read <url> |
Show an issue/PR title + body |
whoami / check |
Show / verify the token's user |
<url> is an issue/PR URL or owner/repo#number. Options: --file <path>,
--json, --token.