Commit 5aff31b
authored
ci(pr-summary): add PR summary via $GITHUB_STEP_SUMMARY (robust diff-tree, precise docs filter, minimal perms)
Purpose
- Fast, visible PR context for reviewers; zero impact on build/tests.
What changed
- New .github/workflows/pr-summary.yml; triggers: PR opened/sync/reopened/ready_for_review.
- Concurrency group + cancel-in-progress, timeout 5m.
- Step writes summary to $GITHUB_STEP_SUMMARY and comments on non-forks.
- File listing hardened: fetch base if missing; use `git diff-tree --no-commit-id --name-only -r "$head" "^origin/$base"`; count changed files; docs count filtered to ^content/.*\.md$.
Safety
- Permissions: contents:read, pull-requests:write only.
- No secrets; read-only ops; idempotent; logs show counts only.
Verification
- Ran on this PR; summary visible in Checks; comment posted on non-fork; all jobs green.
Rollback
- Remove workflow file; no state or side effects.
Follow-ups (optional)
- Add coverage/test counts to summary; make comment sticky; autolabel docs-only PRs.1 file changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments