Overview
CodeFire uses the GitHub CLI (gh) to fetch repository data. Once installed and authenticated, the GitHub tab shows:
- Pull Requests — Open PRs with review status, checks, and diffs
- Commits — Recent commits on the current branch
- Workflows — CI/CD runs with status and logs
- Issues — Open issues assigned to you
Prerequisites
/usr/local/bin/github.com
✓ Logged in to github.com as <your-username>
✓ Git operations for github.com configured to use https protocol.
✓ Token: *******************
The GitHub tab only appears for projects with a GitHub remote. Ensure your project is a Git repository with a GitHub origin:
Using the GitHub Tab
Oncegh is authenticated, open any project in CodeFire and click the GitHub tab.
Pull Requests
The Pull Requests section shows all open PRs for the current repository. For each PR, you’ll see:- PR number and title
- Author and branch name
- Review decision (Approved, Changes Requested, or pending)
- CI checks status (passing, failing, or in progress)
- Additions/deletions count
- Created/updated timestamps
- 🟢 Green — All checks passed
- 🔴 Red — At least one check failed
- 🟡 Yellow — Checks in progress
- ⚪ Gray — No checks configured
- View full diff (opens in browser)
- See check details
- Review comments
Commits
The Commits section shows the 15 most recent commits on the default branch (usuallymain or master).
For each commit, you’ll see:
- Short SHA (first 7 characters)
- Commit message
- Author name
- Commit timestamp
- View full diff in GitHub web UI
- See changed files
- Review commit details
Workflows (CI/CD)
The Workflows section shows the 10 most recent GitHub Actions runs. For each workflow, you’ll see:- Workflow name (e.g., “CI”, “Deploy”, “Tests”)
- Status (in progress, completed, queued)
- Conclusion (success, failure, cancelled, timed out)
- Branch name
- Trigger event (push, pull_request, schedule)
- Created timestamp
- ✅ Success — Workflow completed successfully
- ❌ Failure — Workflow failed
- ⏳ Pending — Workflow in progress
- 🚫 Cancelled — Workflow was cancelled
- View logs in GitHub web UI
- Re-run failed jobs
- Download artifacts
Issues
The Issues section shows open issues assigned to you. For each issue, you’ll see:- Issue number and title
- Labels (bug, enhancement, etc.)
- State (open/closed)
- Assignees
- Created/updated timestamps
- View full description in browser
- Add comments
- Close or assign
How CodeFire Uses gh
CodeFire shells out to gh commands to fetch data. All commands run in the project directory.
Commands Used
| Feature | Command |
|---|---|
| Detect repo | gh repo view --json owner,name,defaultBranchRef |
| Fetch PRs | gh pr list --state open --json number,title,author,headRefName,isDraft,reviewDecision,statusCheckRollup,createdAt,updatedAt,additions,deletions |
| Fetch commits | gh api repos/{owner}/{repo}/commits -f sha={branch} -f per_page=15 |
| Fetch workflows | gh run list --limit 10 --json databaseId,name,status,conclusion,headBranch,event,createdAt,url |
| Fetch issues | gh issue list --assignee @me --state open --json number,title,assignees,labels,state,createdAt,updatedAt |
Data Refresh
CodeFire polls GitHub every 60 seconds while the project window is active. Polling pauses when:- The window loses focus
- The GitHub tab is not visible
- CodeFire is in the background
Creating Pull Requests
You can create PRs directly from the GitHub tab.Troubleshooting
GitHub Tab Shows “Not Available”
Symptom: GitHub tab is grayed out or shows “GitHub not available” Solution:- Verify
ghis installed: - Ensure
ghis in your PATH (CodeFire checks/opt/homebrew/bin/ghand/usr/local/bin/gh) - Verify the project has a GitHub remote:
- Restart CodeFire
Data Not Updating
Symptom: GitHub tab shows stale data Solution:- Click the Refresh icon in the GitHub tab
- Check your internet connection
- Verify
gh auth statusshows you’re logged in - Check the project window is active (polling pauses in background)
PR Checks Not Showing
Symptom: PRs show no check status Solution:- Ensure the repository has GitHub Actions or CI configured
- Check the PR has commits pushed to the remote
- Wait for checks to start (they may take a few seconds)
- Refresh the GitHub tab
Commits Not Appearing
Symptom: Recent commits are missing Solution:- Verify commits are pushed to the remote:
- CodeFire only shows commits on the default branch (main/master)
- For commits on other branches, switch to that branch first
- Refresh the GitHub tab
Authentication Expired
Symptom: GitHub tab stops working after a few weeks Solution:- Re-authenticate with
gh: - Verify authentication:
- Restart CodeFire
Available Features
CodeFire’s GitHub integration provides: ✅ View open PRs — See all PRs with review status and checks✅ Monitor CI/CD — Track workflow runs and failures
✅ Browse commits — Recent commit history with diffs
✅ Track issues — View issues assigned to you
✅ Auto-refresh — Data updates every 60 seconds
✅ Click-through to GitHub — Open any item in your browser 🚧 Coming soon:
- Create PRs from CodeFire
- Inline diff viewer
- Comment on PRs and issues
- Merge PRs with one click
Next Steps
CLI Integration
Connect your AI coding CLI
Workflows
Common workflows and best practices
