This github CLI command (`gh`) will list each PR authored by you. The output contains the PR number, title and all reviews. They are printed as json, and piped to `jq`. From the output, jq filters out the id, title and state of each review and interpolate it into a string.
gh pr list \ --author @me \ --json "number,title,reviews"\ | jq \ '.[] | "PR \(number): \(.title) is \(.reviews[].state)"'
Links
No comments:
Post a Comment