show approval-comments
show approval-comments - Display PR approval comments in human-readable format
Display PR review approvals for specification-related PRs merged in a release.
Shows approvals from GitHub PRs that contain .feature specification files. Special keywords: "unreleased" for pending PRs, "latest" for most recent release.
By default, only shows APPROVED reviews. Use --include-all-reviews to see all review states.
Flags
| Flag | Description |
|---|---|
--include-all-reviews |
Include all review states (not just APPROVED) |
--branch |
Branch to query (default: trunk branch from config, usually "main"). Use "HEAD" for current branch |
Notes
Expected Output:
- Header with module and version
- Summary line with PR and approval counts
- Markdown table with columns: PR, Title, Reviewer, Review State, Reviewed At
Examples
show approval-comments ext-eac
show approval-comments ext-eac latest
show approval-comments ext-eac unreleased
show approval-comments ext-eac --include-all-reviews
Bundle Modules
For container/bundle modules with dependencies, approvals are aggregated from all dependent modules.
Example: When querying ext-eac (which depends on eac-commands and r2r-cli):
Shows approvals from PRs containing:
specs/eac-commands/(dependency)specs/r2r-cli/(dependency)specs/ext-eac/(if any)
Regular modules only show approvals from their own specs/<module>/ directory.
How It Works
- Scans git commits for PR references (
#123orMerge pull request #123) - Fetches PR data via GitHub CLI (
gh pr view) - Filters to PRs containing
.featurefiles inspecs/<module>/ - Extracts reviews (APPROVED by default, use
--include-all-reviewsfor all states)
Requirements
- GitHub CLI (
gh): Command degrades gracefully if unavailable - Authentication:
gh auth loginrequired
Troubleshooting
No Approvals Shown
Possible causes:
- No PRs merged in the version range
- PRs don't contain
.featurefiles - No APPROVED reviews (try
--include-all-reviews) - GitHub CLI unavailable
gh Command Failed
See Also
- get approval-comments - JSON/YAML output
- show specs - View specifications
- show Commands
Tutorials | How-to Guides | Explanation | Reference
You are here: Reference — information-oriented technical descriptions of the system.