fix(OPS74): campo state (MERGED) no gh do recovery — merged não é campo válido do pr view

This commit is contained in:
Francisco Solla 2026-08-19 23:44:26 -03:00
parent 9713554414
commit 966862c801
2 changed files with 6 additions and 6 deletions

View file

@ -54,9 +54,9 @@ jobs:
id: pr
run: |
PR="${{ inputs.pr }}"
MERGED="$(gh pr view "$PR" --json merged -q .merged)"
if [ "$MERGED" != "true" ]; then
echo "PR #$PR não mergeada — skip"
STATE="$(gh pr view "$PR" --json state -q .state)"
if [ "$STATE" != "MERGED" ]; then
echo "PR #$PR não mergeada (state=$STATE) — skip"
exit 0
fi
BASE="$(gh pr view "$PR" --json baseRefName -q .baseRefName)"

View file

@ -62,9 +62,9 @@ jobs:
id: pr
run: |
PR="${{ inputs.pr }}"
MERGED="$(gh pr view "$PR" --json merged -q .merged)"
if [ "$MERGED" != "true" ]; then
echo "PR #$PR não mergeada — skip"
STATE="$(gh pr view "$PR" --json state -q .state)"
if [ "$STATE" != "MERGED" ]; then
echo "PR #$PR não mergeada (state=$STATE) — skip"
exit 0
fi
BASE="$(gh pr view "$PR" --json baseRefName -q .baseRefName)"