From 4db2a034d3b1c4f2534918ca970a1cfdc444d786 Mon Sep 17 00:00:00 2001 From: GoDn76 Date: Tue, 18 Aug 2026 10:44:58 +0530 Subject: [PATCH 1/2] ci: guard against unresolved changelog PR placeholders --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ee4b39f5..a7ecd2f4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,13 @@ jobs: fi echo "All versions match: $ROOT_VERSION" + - name: Check for unresolved PR placeholders in CHANGELOG + run: | + if [ -f CHANGELOG.md ] && grep -qF '(#PR)' CHANGELOG.md; then + echo "::error file=CHANGELOG.md::Found unresolved '(#PR)' placeholder(s). Please replace with the actual PR number." + exit 1 + fi + - name: Lint uses: nick-fields/retry@v4 with: From b13f518117e405f648251b38cf84c87413ddf365 Mon Sep 17 00:00:00 2001 From: Gaurav Urmaliya <132983766+GoDn76@users.noreply.github.com> Date: Tue, 18 Aug 2026 20:31:26 +0530 Subject: [PATCH 2/2] Update .github/workflows/ci.yml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7ecd2f4c..b62ea58a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,9 +81,17 @@ jobs: - name: Check for unresolved PR placeholders in CHANGELOG run: | - if [ -f CHANGELOG.md ] && grep -qF '(#PR)' CHANGELOG.md; then - echo "::error file=CHANGELOG.md::Found unresolved '(#PR)' placeholder(s). Please replace with the actual PR number." - exit 1 + if [ -f CHANGELOG.md ]; then + if grep -qF '(#PR)' CHANGELOG.md; then + echo "::error file=CHANGELOG.md::Found unresolved '(#PR)' placeholder(s). Please replace with the actual PR number." + exit 1 + else + grep_status=$? + if [ "$grep_status" -ne 1 ]; then + echo "::error file=CHANGELOG.md::Unable to scan CHANGELOG.md." + exit "$grep_status" + fi + fi fi - name: Lint