Documentation
README
GitHub Code Review
Perform code reviews on local changes before pushing, or review open PRs on
GitHub. Most of this skill uses plain git — the gh/curl split only
matters for PR-level interactions.
Prerequisites
- Authenticated with GitHub (
GITHUB_TOKENenv var orgh auth login) - Inside a git repository
Setup (for PR interactions)
if command -v gh &>/dev/null && gh auth status &>/dev/null; then
AUTH="gh"
else
AUTH="git"
fi
REMOTE_URL=$(git remote get-url origin)
OWNER_REPO=$(echo "$REMOTE_URL" | sed -E 's|.*github\.com[:/]||; s|\.git$||')
OWNER=$(echo "$OWNER_REPO" | cut -d/ -f1)
REPO=$(echo "$OWNER_REPO" | cut -d/ -f2)
This is the opening of the README. Read the full README on GitHub.