Skip to content

edihasaj/slash-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

slash-github

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.)

Install

cd ~/Projects/slash-github && npm link    # exposes `slash-github` and `sgh`

Auth

Create a token at https://github.com/settings/tokens (public_repo, or repo for private), then:

export GITHUB_TOKEN=ghp_...
slash-github check

Use

slash-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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors