You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--include-reviews Include PR reviews (default: true)
81
+
--force-api Force using GitHub API instead of gh CLI
82
+
--force-gh Force using gh CLI, fail if not available
83
+
-v, --verbose Enable verbose logging
84
+
-h, --help Show help
85
+
--version Show version number
86
+
```
87
+
88
+
## Backend Modes
89
+
90
+
The tool supports two backend modes for fetching PR data:
91
+
92
+
### 1. gh CLI Mode (Default)
93
+
94
+
By default, the tool uses the [GitHub CLI](https://cli.github.com/) (`gh`) to fetch PR data. This is the recommended mode as it:
95
+
96
+
- Uses your existing `gh` authentication
97
+
- Doesn't require managing tokens separately
98
+
- Works seamlessly with GitHub Enterprise
99
+
100
+
### 2. API Mode (Fallback)
101
+
102
+
If `gh` CLI is not available or not authenticated, the tool automatically falls back to using the GitHub REST API via Octokit. You can also force this mode with `--force-api`.
103
+
104
+
### Controlling Backend Mode
105
+
106
+
```bash
107
+
# Use default mode (gh CLI with API fallback)
108
+
gh-load-pull-request owner/repo#123
109
+
110
+
# Force gh CLI mode (fails if gh is not available)
111
+
gh-load-pull-request owner/repo#123 --force-gh
112
+
113
+
# Force API mode (useful for testing or when gh has issues)
0 commit comments