From d6a1500fa86f5cba48bbe43cf0b57f9a8639a6ca Mon Sep 17 00:00:00 2001 From: Sagar Khalasi Date: Fri, 13 Sep 2024 15:56:02 +0530 Subject: [PATCH] fix: Fix the issue for the reverse PR comment (#36308) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Fix the issue as flag value was interchange. Fixes #`Issue Number` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.ImportExport" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: aa17588ae04bf60d668512b262e9e742814d3ffc > Cypress dashboard. > Tags: `@tag.ImportExport` > Spec: >
Fri, 13 Sep 2024 10:01:50 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No ## Summary by CodeRabbit - **Bug Fixes** - Adjusted the logic for adding comments on pull requests based on CI test results, improving clarity of feedback. - Enhanced conditions for commenting on new CI failures and successful jobs to provide more accurate notifications. --- .github/workflows/build-client-server-count.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-client-server-count.yml b/.github/workflows/build-client-server-count.yml index 824d53be2b..c15a92947b 100644 --- a/.github/workflows/build-client-server-count.yml +++ b/.github/workflows/build-client-server-count.yml @@ -292,7 +292,7 @@ jobs: fi - name: Add a comment on the PR with new CI failures - if: env.ci_test_failed == 'true' && needs.file-check.outputs.pr != '0' + if: env.ci_test_failed != 'true' && needs.file-check.outputs.pr != '0' uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{fromJson(needs.file-check.outputs.pr)}} @@ -306,7 +306,7 @@ jobs: ``` - name: Add a comment on the PR when ci-test-limited is successful - if: env.ci_test_failed != 'true' && needs.file-check.outputs.pr != '0' + if: env.ci_test_failed == 'true' && needs.file-check.outputs.pr != '0' uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{fromJson(needs.file-check.outputs.pr)}} @@ -451,7 +451,7 @@ jobs: fi - name: Add a comment on the PR with new CI failures - if: env.ci_test_failed == 'true' && needs.file-check.outputs.pr != '0' + if: env.ci_test_failed != 'true' && needs.file-check.outputs.pr != '0' uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{fromJson(needs.file-check.outputs.pr)}} @@ -465,7 +465,7 @@ jobs: ``` - name: Add a comment on the PR when ci-test-limited-existing-docker-image is success - if: env.ci_test_failed != 'true' && needs.file-check.outputs.pr != '0' + if: env.ci_test_failed == 'true' && needs.file-check.outputs.pr != '0' uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{fromJson(needs.file-check.outputs.pr)}}