Conversation
…ribution-check, draft-pr-cleanup workflows Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Normalizes report output formatting across four agent workflows to comply with existing report layout standards (h3+ headers and progressive disclosure via <details>).
Changes:
- Updated embedded report/comment templates to use
###(h3) or lower headers instead of#/##. - Added explicit “Report Formatting” instructions to each workflow prompt/template section.
- Wrapped verbose sections (stats / per-item lists) in
<details>blocks for progressive disclosure.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/pr-triage-agent.md | Converts report/comment headers to h3+ and wraps breakdown stats in <details>. |
| .github/workflows/ci-doctor.md | Converts investigation issue template headers to h3+ and collapses deep-dive sections with <details>. |
| .github/workflows/contribution-check.md | Updates example report header level and adds <details> progressive disclosure for per-PR details. |
| .github/workflows/draft-pr-cleanup.md | Normalizes summary report header levels and collapses warned/closed PR lists with <details>. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| ```markdown | ||
| # 🏥 CI Failure Investigation - Run #${{ github.event.workflow_run.run_number }} | ||
| ### CI Failure Investigation - Run #${{ github.event.workflow_run.run_number }} |
There was a problem hiding this comment.
This changes the investigation issue title content by removing the 🏥 emoji (not just the header level). If the intent of this PR is only formatting normalization, consider keeping the original title text and only adjusting the heading level.
| | PR | Title | Author | Lines | Quality | | ||
| |----|-------|--------|------:|---------| | ||
| | #4519 | Add unrelated marketing page | @dave | 42 | spam | | ||
|
|
There was a problem hiding this comment.
For GitHub-flavored Markdown, tables inside a
Details
block are more reliably rendered when there’s a blank line before the closing.github/workflows/shared/reporting.md.
| ### 🔍 PR Triage Results | ||
|
|
||
| **Category:** {category} | **Risk:** {risk} | **Priority:** {priority_score}/100 |
There was a problem hiding this comment.
Lowering the PR comment title to h3 makes the existing subsections (e.g., "Scores Breakdown" / "Recommended Action") the same header level as the title, which flattens the hierarchy. Consider demoting those subsections to h4 so they’re clearly nested under "PR Triage Results" while still staying at h3+ overall.
See below for a potential fix:
#### Scores Breakdown
- **Impact:** {impact_score}/50 - {impact_rationale}
- **Urgency:** {urgency_score}/30 - {urgency_rationale}
- **Quality:** {quality_score}/20 - {quality_rationale}
#### 📋 Recommended Action: {action}
Four workflows were generating reports with h1/h2 headers and no
<details>progressive disclosure, violating the formatting standards established indaily-file-diet.mdandci-coach.md.Changes
pr-triage-agent.md: PR comment##→###; report template#/##→###; "By Category/Risk/Priority" stats wrapped in<details>; formatting instruction addedci-doctor.md: Issue template#/##→###; "Investigation Findings" and "Historical Context" wrapped in<details>; formatting instruction addedcontribution-check.md: Example report##→###; "Off-guidelines" table wrapped in<details>; formatting instruction added to Report Layout Rulesdraft-pr-cleanup.md: Summary template##→###, sub-sections###→####; "PRs Warned/Closed This Run" wrapped in<details>; formatting instruction addedPattern applied (consistent with reference workflows)
Lock files regenerated via
make recompile.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/graphql/usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/11bd71901bbe5b1630ceea73d27597364c9af683/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/11bd71901bbe5b1630ceea73d27597364c9af683 --jq .object.sha(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/v6/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha(http block)https://api.github.com/repos/actions/github-script/git/ref/tags/v7/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v7 --jq .object.sha(http block)https://api.github.com/repos/actions/setup-go/git/ref/tags/4dc6199c7b1a012772edbd06daecab0f50c9053c/usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/4dc6199c7b1a012772edbd06daecab0f50c9053c --jq .object.sha(http block)https://api.github.com/repos/actions/setup-go/git/ref/tags/v5/usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v5 --jq .object.sha(http block)https://api.github.com/repos/actions/setup-go/git/ref/tags/v6/usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v6 --jq .object.sha(http block)https://api.github.com/repos/actions/setup-node/git/ref/tags/v6/usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq .object.sha(http block)https://api.github.com/repos/anchore/sbom-action/git/ref/tags/v0/usr/bin/gh gh api /repos/anchore/sbom-action/git/ref/tags/v0 --jq .object.sha(http block)https://api.github.com/repos/docker/build-push-action/git/ref/tags/v6/usr/bin/gh gh api /repos/docker/build-push-action/git/ref/tags/v6 --jq .object.sha(http block)https://api.github.com/repos/docker/login-action/git/ref/tags/v3/usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq .object.sha(http block)https://api.github.com/repos/docker/metadata-action/git/ref/tags/v5/usr/bin/gh gh api /repos/docker/metadata-action/git/ref/tags/v5 --jq .object.sha(http block)https://api.github.com/repos/docker/setup-buildx-action/git/ref/tags/v3/usr/bin/gh gh api /repos/docker/setup-buildx-action/git/ref/tags/v3 --jq .object.sha ./cmd/gh-aw(http block)/usr/bin/gh gh api /repos/docker/setup-buildx-action/git/ref/tags/v3 --jq .object.sha(http block)https://api.github.com/repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb/usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb --jq .object.sha(http block)https://api.github.com/repos/githubnext/agentics/git/ref/tags//usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.