From 966862c801d30586b713e1921a9dd50e3dfa3d0b Mon Sep 17 00:00:00 2001 From: Francisco Solla Date: Wed, 19 Aug 2026 23:44:26 -0300 Subject: [PATCH] =?UTF-8?q?fix(OPS74):=20campo=20`state`=20(MERGED)=20no?= =?UTF-8?q?=20gh=20do=20recovery=20=E2=80=94=20`merged`=20n=C3=A3o=20?= =?UTF-8?q?=C3=A9=20campo=20v=C3=A1lido=20do=20pr=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue-done-on-main-merge.yml | 6 +++--- .github/workflows/plan-issue-ready-on-main-merge.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/issue-done-on-main-merge.yml b/.github/workflows/issue-done-on-main-merge.yml index 042c0005..5a3ba77f 100644 --- a/.github/workflows/issue-done-on-main-merge.yml +++ b/.github/workflows/issue-done-on-main-merge.yml @@ -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)" diff --git a/.github/workflows/plan-issue-ready-on-main-merge.yml b/.github/workflows/plan-issue-ready-on-main-merge.yml index 893209b4..2c45d59b 100644 --- a/.github/workflows/plan-issue-ready-on-main-merge.yml +++ b/.github/workflows/plan-issue-ready-on-main-merge.yml @@ -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)"