From 918bb4a07394e13f4b8303d157c3ad8b85b70eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Flor=C3=AAncio?= Date: Tue, 25 Aug 2026 14:49:55 +0000 Subject: [PATCH] fix(ci): prevent PR walkthrough link false failures (#3039) --- .github/scripts/pr-walkthrough-workflow-contract_test.py | 2 ++ .github/workflows/pr-walkthrough.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/scripts/pr-walkthrough-workflow-contract_test.py b/.github/scripts/pr-walkthrough-workflow-contract_test.py index b878913f7c..8577c2b883 100644 --- a/.github/scripts/pr-walkthrough-workflow-contract_test.py +++ b/.github/scripts/pr-walkthrough-workflow-contract_test.py @@ -348,6 +348,8 @@ class PRWalkthroughWorkflowContractTest(unittest.TestCase): self.assertIn("scripts/pr-walkthrough-pr-body", self.link) self.assertIn("--github-response", self.link) self.assertIn("--input", self.link) + patch_call = self.link.split("gh api --method PATCH", 1)[1].split("echo", 1)[0] + self.assertIn("--silent", patch_call) self.assertIn( "PUBLIC_URL: ${{ needs.pr-walkthrough-publish.outputs.url }}", self.link, diff --git a/.github/workflows/pr-walkthrough.yml b/.github/workflows/pr-walkthrough.yml index ebe5007c13..51ce45571c 100644 --- a/.github/workflows/pr-walkthrough.yml +++ b/.github/workflows/pr-walkthrough.yml @@ -413,5 +413,5 @@ jobs: gh api --method PATCH \ "repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}" \ --input pr-update.json \ - > /dev/null + --silent echo "Added the walkthrough link to the top of the PR description." >> "$GITHUB_STEP_SUMMARY"