Add CI dashboard badge when a pull request opens (#50106)
* Add CI dashboard badge when a pull request opens
* @ydshieh reviews
rename PR CI dashboard script to add_pr_ci_dashboard_badge
+ the script's main job is now injecting the dashboard badge, not the recap.
* remove all recap/legacy-cleanup code now that recap comments are gone
- Drop RECAP_START/END, OLD_DASHBOARD_COMMENT_MARKERS, log_workflow_run,
github_paginate, find_open_pr_for_sha, delete_old_dashboard_comments,
delete_recap_comments, remove_marked_block from the badge script
- Simplify main() to only handle pull_request events (workflow_run path removed)
- post-link job now only runs on pull_request_target (not workflow_run)
- post-mlinter-review no longer needs: post-link (jobs are now independent)
- Remove all recap/paginate/delete test classes from the test file
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* add inline comments explaining the two workflow triggers
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* rename test_only_replaces_first_block_region → test_replaces_all_marked_regions
---------
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>