Skip to content

CPI-0: experiments#7

Closed
ajax-romaniuk-o wants to merge 3 commits into
gw-kit:mainfrom
ajax-romaniuk-o:feature/CPI-test
Closed

CPI-0: experiments#7
ajax-romaniuk-o wants to merge 3 commits into
gw-kit:mainfrom
ajax-romaniuk-o:feature/CPI-test

Conversation

@ajax-romaniuk-o

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings August 22, 2025 11:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds HTML coverage report functionality to the GitHub Action, allowing it to generate and link to detailed HTML coverage reports alongside the existing coverage information. The enhancement provides users with a richer view of coverage data through interactive HTML reports.

Key changes:

  • Added support for HTML coverage report links in comment body generation
  • Introduced a new additional-data input parameter for specifying HTML report base paths
  • Extended GitHub API calls to include the additional data parameter

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
src/build-comment-body.js Added functions to generate HTML report links for individual views and aggregated reports
action.yaml Added new additional-data input parameter and passed it to the build message step and GitHub API calls

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/build-comment-body.js Outdated
const buildHtmlReportLink = (checkRun) => {
if (!ctx.additionalData) return '';

// Створюємо URL до HTML звіту на основі additional-data та view

Copilot AI Aug 22, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is in Ukrainian. Consider using English for consistency with the rest of the codebase.

Suggested change
// Створюємо URL до HTML звіту на основі additional-data та view
// Create a URL to the HTML report based on additional-data and view

Copilot uses AI. Check for mistakes.
Comment thread src/build-comment-body.js Outdated
const baseUrl = ctx.additionalData.trim();
if (!baseUrl) return '';

// Додаємо view та /html/index.html

Copilot AI Aug 22, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is in Ukrainian. Consider using English for consistency with the rest of the codebase.

Suggested change
// Додаємо view та /html/index.html
// Add view and /html/index.html

Copilot uses AI. Check for mistakes.
Comment thread src/build-comment-body.js Outdated

let result = `${workflowRunLink} | \`${formattedDate}\``;

// Додаємо загальний HTML report link, якщо є additional-data

Copilot AI Aug 22, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is in Ukrainian. Consider using English for consistency with the rest of the codebase.

Suggested change
// Додаємо загальний HTML report link, якщо є additional-data
// Add general HTML report link if there is additional-data

Copilot uses AI. Check for mistakes.
Comment thread action.yaml
repo: context.repo.repo,
body: ${{ steps.build-message.outputs.result }}
body: ${{ steps.build-message.outputs.result }},
link: `${{ inputs.additional-data }}`

Copilot AI Aug 22, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'link' parameter is being added to the GitHub API call for updating comments, but this is not a valid parameter for the github.rest.issues.updateComment API. This will likely cause the API call to fail or ignore the parameter.

Copilot uses AI. Check for mistakes.
Comment thread action.yaml
repo: context.repo.repo,
body: ${{ steps.build-message.outputs.result }}
body: ${{ steps.build-message.outputs.result }},
link: `${{ inputs.additional-data }}`

Copilot AI Aug 22, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'link' parameter is being added to the GitHub API call for creating comments, but this is not a valid parameter for the github.rest.issues.createComment API. This will likely cause the API call to fail or ignore the parameter.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants