GitHub App

A review is posted as Hunkbot's GitHub App, as a bot account you sign in, or under your own account, in that order.

Three Ways to Post

app_id + app_key

first

Posted as the App, hunkbot-app[bot], with no seat taken in an organization.

post_as

second

Posted as the GitHub account it names, signed in to gh beside yours.

(neither)

default

Posted under gh's active account: yours.

The App

With both keys set in ~/.hunkbot/config.toml, the App's private key signs a token, and a token of the App's installation is made for each post and each answer.

app_id = "<the App's ID>"app_key = "~/.hunkbot/hunkbot-review.pem"

The App's private key is kept on Hunkbot's makers' machines. A machine without it posts as post_as, or as you. The service that will hold the key, so anyone on a team can post as the App, is planned, not built.

A Bot Account

hunkbot login reads a GitHub account's token from standard input, signs it in to gh beside your own account, and sets post_as to it. Your account stays the active one. The bot account needs read access to the repositories it reviews.

hunkbot login < hunkbot-token.txt

hunkbot doctor bot says whether the account set can post, and the steps where it cannot.

Your Own Account

With neither set, the review is posted under gh's active account. Nothing else is needed.