diff options
-rwxr-xr-x | code-review-gh-start | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/code-review-gh-start b/code-review-gh-start index 2bfa980..4b6adea 100755 --- a/code-review-gh-start +++ b/code-review-gh-start @@ -22,4 +22,9 @@ merge_base='TODO' +# Filter pull requests with .head.ref corresponding to current branch name, and +# get the .base.ref as the merge base. +# +# gh api repos/:owner/:repo/pulls --jq=".[] | [.head.ref, .base.ref] | @tsv" + code-review-start "$merge_base" |