CLI Reference

hunkbot login

Signs a GitHub account's token in to gh beside your own, and posts the reviews as that account.

Input

The account's token, on standard input. It takes no argument and no flag.

Output

Signed in to gh as <account>; reviews are posted as <account>. and, where you were signed in, Your own account, <you>, stays the active one. ~/.hunkbot/config.toml gets post_as.

The account needs read access to the repositories it reviews. Where app_id and app_key are set, the App posts in its place.

Examples

hunkbot login < hunkbot-token.txtpbpaste | hunkbot login
Usage
hunkbot login < token.txt