scripts: expose PR URL in review workflow output

This commit is contained in:
Gustavo Madeira Santana
2026-04-05 12:56:24 -04:00
parent 7a14967f8e
commit 2ce38dfc31
3 changed files with 11 additions and 0 deletions

View File

@@ -514,6 +514,7 @@ review_init() {
printf '%s\n' "$json" | jq '{number,title,url,state,isDraft,author:.author.login,base:.baseRefName,head:.headRefName,headSha:.headRefOid,headRepo:.headRepository.nameWithOwner,additions,deletions,files:(.files|length)}'
echo "worktree=$PWD"
echo "pr_url=${PR_URL:-}"
echo "merge_base=$mb"
echo "branch=$(git branch --show-current)"
echo "wrote=.local/pr-meta.json .local/pr-meta.env .local/review-context.env .local/review-mode.env"