๐ ๏ธ Development
Test locally with injected GraphQL fixtures, plus the release workflow.
๐งช Testing locally
You can bypass live GitHub calls by providing a GraphQL result via the
GH_REVIEW_PR_JSON env variable. This can be either a path to a file or the
JSON string itself.
Example with your own GraphQL response file:
GH_REVIEW_PR_JSON=/path/to/your_graphql.json \
./gh-pr-comments 123 -R owner/repo --jsonThe above prints the parsed comments as JSON. Use --list to print the UI list
instead:
GH_REVIEW_PR_JSON=/path/to/your_graphql.json \
./gh-pr-comments 123 -R owner/repo --list๐ท๏ธ Versioning & releases
This project follows Semantic Versioning. Release workflow:
-
Determine the next version (e.g.
v0.1.1) based on the changes: fix = patch, new backward-compatible feature = minor, breaking change = major. -
Update
CHANGELOG.mdwith a new section for the version (include the date):## v0.1.1 - 2025-09-04 - Add ... - Fix ... -
Commit and tag:
git add CHANGELOG.md git commit -m "chore(release): v0.1.1" git tag v0.1.1 git push && git push --tags
Users can check the installed version with:
gh pr-comments --version