From 86bbc22893b5d581ace366576f533364d248d605 Mon Sep 17 00:00:00 2001 From: Lifailon Date: Thu, 5 Feb 2026 16:03:56 +0300 Subject: [PATCH] update notify for unit test results from pr --- .github/workflows/pr-check.yml | 19 +++++++++++-------- .github/workflows/readme-review.yml | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 8e2ca72..3dbcba8 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -149,7 +149,6 @@ jobs: if: always() with: report_paths: "report.xml" - detailed_summary: true - name: Send message to Telegram uses: appleboy/telegram-action@master @@ -166,23 +165,27 @@ jobs: ๐Ÿ“ **Repository**: ${{ github.repository }} ๐Ÿ‘ค **From user**: ${{ github.actor }} - ๐Ÿ’ก **Status**: ${{ steps.unitTesting.outcome == 'success' && 'โœ…' || 'โŒ' }} ${{ steps.unitTesting.outcome }} + ๐Ÿ’ก **Step status**: ${{ steps.unitTesting.outcome == 'success' && 'โœ…' || 'โŒ' }} ${{ steps.unitTesting.outcome }} - ๐Ÿ“š **Report**: - ${{ steps.junit_report.outputs.total }} + ๐Ÿ“š **Test results**: + Total: ${{ steps.junit_report.outputs.total }} + Passed: ${{ steps.junit_report.outputs.passed }} + Skipped: ${{ steps.junit_report.outputs.skipped }} + Retried: ${{ steps.junit_report.outputs.retried }} + Failed: ${{ steps.junit_report.outputs.failed }} - name: Post AI comment on PR if: ${{ (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && always() }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.pull_request.number }} - DETAILED_REPORT: ${{ steps.junit_report.outputs.detailed_summary }} + JUNIT_REPORT_SUMMARY: ${{ steps.junit_report.outputs.summary }} run: | cat < comment_body.md - ### ๐Ÿ“Š Unit testing results + ### ๐Ÿงช Unit testing results Status: ${{ steps.unitTesting.outcome == 'success' && 'โœ…' || 'โŒ' }} **${{ steps.unitTesting.outcome }}** - #### ๐Ÿ“ Detailed report - $DETAILED_REPORT + #### ๐Ÿ“Š Report summary + $JUNIT_REPORT_SUMMARY EOF gh pr comment "$PR_NUMBER" --body-file comment_body.md diff --git a/.github/workflows/readme-review.yml b/.github/workflows/readme-review.yml index cdcb4b3..31192f9 100644 --- a/.github/workflows/readme-review.yml +++ b/.github/workflows/readme-review.yml @@ -50,7 +50,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} endpoint: https://models.github.ai/inference model: gpt-4.1 - max-tokens: 2048 + max-tokens: 8192 system-prompt: | You are a professional translator. We need to analyze the submitted file and check its spelling in ${{ github.event.inputs.Language }}.