[Preview link generator] Add file annotation functionality - #720
Merged
Conversation
Contributor
There was a problem hiding this comment.
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_warningsworkflow 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.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…nto annotated-warnings
adegeo
approved these changes
Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.