Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

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.

Uses your existing github.com browser cookie by default. Token auth through the GitHub REST API remains supported as a fallback. (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

Default auth reads your existing GitHub browser login from Safari, Chrome, Edge, or Firefox:

slash-github check

For launch agents or bridge services, pass a cookie explicitly:

export GITHUB_COOKIE_HEADER='user_session=...; _gh_sess=...'# or only:export GITHUB_USER_SESSION=...

Useful cookie options:

slash-github check --cookie-source chrome
slash-github check --cookie-source safari --cookie-source firefox
slash-github check --chrome-profile "Default"

Token fallback: 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
CommandDescription
comment <url> [text]Comment on an issue or PR
read <url>Show an issue/PR title + body
whoami / checkShow / verify the token's user

<url> is an issue/PR URL or owner/repo#number. Options: --file <path>, --json, --cookie, --user-session, --cookie-source, --token.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages