Skip to content

[Preview link generator] Add file annotation functionality - #720

Merged
gewarren merged 6 commits into
dotnet:mainfrom
gewarren:annotated-warnings
Aug 25, 2026
Merged

[Preview link generator] Add file annotation functionality#720
gewarren merged 6 commits into
dotnet:mainfrom
gewarren:annotated-warnings

Conversation

@gewarren

@gewarren gewarren commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Copilot AI lite review requested due to automatic review settings August 25, 2026 18:07
@gewarren
gewarren requested a review from a team as a code owner August 25, 2026 18:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 extends the preview-link-generator GitHub Action to (1) add a build report link into the PR body and (2) optionally create GitHub check-run annotations for OPS build warnings/errors that occur on changed (added) PR lines.

Changes:

  • Add annotate_file_warnings workflow input and use it to create check-run annotations based on OPS build report diagnostics.
  • Append a “Build report” link to the updated PR description alongside the preview table update flow.
  • Update action defaults/documentation and add unit tests for diagnostic extraction and patch-line filtering.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
actions/preview-link-generator/src/types/WorkflowInput.ts Adds new annotateFiles input accessor for enabling file annotations.
actions/preview-link-generator/src/pull-updater.ts Downloads build report earlier, adds optional annotation flow, appends build report link, and adds diagnostic parsing/filtering helpers.
actions/preview-link-generator/README.md Documents required permissions and the new annotate_file_warnings option (formatting issue noted).
actions/preview-link-generator/package.json Bumps action package version to 3.0.0.
actions/preview-link-generator/dist/index.js Updates bundled output to include the new annotation and build-report-link behavior.
actions/preview-link-generator/action.yml Adds new input and updates defaults/permissions messaging (default drift noted).
actions/preview-link-generator/tests/pull-updater.test.ts Adds tests for diagnostic extraction and filtering to added PR patch lines.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread actions/preview-link-generator/src/pull-updater.ts Outdated
Comment thread actions/preview-link-generator/src/pull-updater.ts Outdated
Comment thread actions/preview-link-generator/README.md Outdated
Comment thread actions/preview-link-generator/action.yml
gewarren and others added 4 commits August 25, 2026 12:36
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@gewarren
gewarren merged commit f90736d into dotnet:main Aug 25, 2026
9 checks passed
@gewarren
gewarren deleted the annotated-warnings branch August 25, 2026 21:53
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.

[preview-link-generator] Don't use cached PR description

3 participants