From ce45e48a276ae641cf9eace2a9f680816588404c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 7 Apr 2026 10:10:32 +0000 Subject: [PATCH 1/2] Initial plan From aed7e8bb83f9ba165f7455b13d9e9586b3954956 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 7 Apr 2026 10:14:37 +0000 Subject: [PATCH 2/2] improve Polarion review comment display when Polarion is in sync with EA model Agent-Logs-Url: https://github.com/LieberLieber/LemonTree.DevOps.Demo/sessions/61ed236b-d2db-4e9c-8244-9fc97101fca7 Co-authored-by: danielsiegl <41949368+danielsiegl@users.noreply.github.com> --- .../workflows/ReviewPolarionRequirements.yml | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ReviewPolarionRequirements.yml b/.github/workflows/ReviewPolarionRequirements.yml index c4e94c0..df1da3a 100644 --- a/.github/workflows/ReviewPolarionRequirements.yml +++ b/.github/workflows/ReviewPolarionRequirements.yml @@ -261,7 +261,31 @@ jobs: script: | const prNumber = ${{steps.find-pr.outputs.pr_number}}; const COMMENT_MARKER = ''; - const body = COMMENT_MARKER + '\nPolarion vs Model comparison in current Branch\n${{steps.uploadSession.outputs.SfsFileNameLinks}}\n\n${{ steps.processSvgs.outputs.svgLinksMarkdown }}${{steps.pcsDiff.outputs.CommitID}}\n\nChanged Requirements:\n${{steps.diffreport.outputs.ModifiedRequirements}}'; + const modifiedRequirements = '${{steps.diffreport.outputs.ModifiedRequirements}}'.trim(); + const branch = '${{steps.extract_branch.outputs.branch}}'; + const commitId = '${{steps.pcsDiff.outputs.CommitID}}'; + const runUrl = 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'; + const runId = '${{ github.run_id }}'; + + let body; + if (!modifiedRequirements) { + body = COMMENT_MARKER + '\n' + + '## Polarion vs Model Comparison - Run #' + runId + '\n' + + '\n' + + '**Status:** :heavy_check_mark: Polarion is in sync with EA model\n' + + '\n' + + '**Details:**\n' + + '- Branch: `' + branch + '`\n' + + '- Changed Requirements: None\n' + + '- Commit: `' + commitId + '`\n' + + '- Run: [View logs](' + runUrl + ')\n' + + '\n' + + '---\n' + + '*This comment is automatically updated per run*'; + } else { + body = COMMENT_MARKER + '\nPolarion vs Model comparison in current Branch\n${{steps.uploadSession.outputs.SfsFileNameLinks}}\n\n${{ steps.processSvgs.outputs.svgLinksMarkdown }}${{steps.pcsDiff.outputs.CommitID}}\n\nChanged Requirements:\n${{steps.diffreport.outputs.ModifiedRequirements}}'; + } + const { data: comments } = await github.rest.issues.listComments({ owner: context.repo.owner, repo: context.repo.repo,