Repository navigation
[dash_site] Combine staged site previews into a single PR comment with status indicators - #14137
Conversation
…h status indicators
There was a problem hiding this comment.
Code Review
This pull request introduces a new preview_comments.dart module and corresponding tests to manage a unified staging preview dashboard comment on GitHub pull requests, updating stage_preview.dart to use this new status-tracking system. The review feedback recommends improving type safety in PreviewEntry.fromJson by explicitly matching json as Map<String, Object?> to avoid implicit dynamic calls, extracting a shared helper to reduce code duplication when finding existing comments, catching general Exceptions instead of only github.GitHubError to prevent CLI crashes on network issues, and removing a redundant try-catch block in stage_preview.dart once exception handling is centralized.
🚀 Staged previews
|
parlough
left a comment
There was a problem hiding this comment.
Nice! Thanks for tackling this :D
Combines preview comments for docs.flutter.dev and flutter.dev into a
single consolidated PR comment with status indicators (⏳ Building,
✅ Ready, ❌ Failed).
Previously, staging jobs for each site created independent comments on
the PR, causing confusion over which preview link belonged to which
site.
With this change:
preview link and commit link.
Fixes #13617
Presubmit checklist
of 80 characters or fewer.