Skip to content

fix(workflow): normalize report formatting in copilot-pr-nlp-analysis#30160

Merged
pelikhan merged 3 commits intomainfrom
copilot/workflow-style-normalize-report-formatting
May 4, 2026
Merged

fix(workflow): normalize report formatting in copilot-pr-nlp-analysis#30160
pelikhan merged 3 commits intomainfrom
copilot/workflow-style-normalize-report-formatting

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 4, 2026

copilot-pr-nlp-analysis.md was generating discussions with ## (h2) headers in the report template, inconsistent with other reporting workflows that use ###. It also lacked the shared/reporting.md import and had no progressive disclosure for long secondary sections.

Changes

  • Import: Add shared/reporting.md to the imports section
  • Headers: Demote all ## section headers in the Phase 6 discussion template to ### (Executive Summary, Sentiment Analysis, Topic Analysis, Keyword Trends, Conversation Patterns, Insights and Trends, Sentiment by Message Type, PR Highlights, Recommendations, Workflow Details)
  • Progressive disclosure: Wrap Historical Context and Methodology sections in <details>/<summary> tags to reduce visual noise for readers
<details>
<summary><b>Methodology</b></summary>

**NLP Techniques Applied**:
- Sentiment Analysis: TextBlob/VADER
...

</details>

Lock file recompiled 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
    • Triggering command: /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)
    • Triggering command: /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 d2-977947f90355 (http block)
    • Triggering command: /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 0f9-ce28-40f1-8d-C (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv /ref/tags/v9 --local sv user.name (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv get --local me: String!) { repository(owne-f user.name (http block)
  • https://api.github.com/repos/actions/download-artifact/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/download-artifact/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v9
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv -main/dist/index.js (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv .&#34; (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv ithub/workflows --local /home/REDACTED/go/bin/git user.name (http block)
  • https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv (http block)
  • https://api.github.com/repos/docker/metadata-action/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/docker/metadata-action/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv (http block)
  • https://api.github.com/repos/docker/setup-buildx-action/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/docker/setup-buildx-action/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .default_branch get --local rgo/bin/bash committer.email (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI and others added 2 commits May 4, 2026 14:28
- Add shared/reporting.md import
- Replace ## headers with ### in discussion body template
- Wrap Historical Context and Methodology sections in <details> tags
- Recompile lock file

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/8ce060f9-ce28-40f1-8dd2-977947f90355

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Copilot AI changed the title [WIP] Normalize report formatting for non-compliant workflows fix(workflow): normalize report formatting in copilot-pr-nlp-analysis May 4, 2026
Copilot AI requested a review from gh-aw-bot May 4, 2026 14:33
@pelikhan pelikhan marked this pull request as ready for review May 4, 2026 17:22
Copilot AI review requested due to automatic review settings May 4, 2026 17:22
@github-actions github-actions Bot mentioned this pull request May 4, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Normalizes the Copilot PR NLP analysis report template so its discussion output is closer to the repo’s shared reporting format, then regenerates the compiled workflow artifacts.

Changes:

  • Adds shared/reporting.md to the NLP analysis workflow imports.
  • Demotes Phase 6 report section headers from ## to ###.
  • Wraps Historical Context and Methodology in collapsible <details> blocks and recompiles lockfiles.
Show a summary per file
File Description
.github/workflows/daily-model-inventory.lock.yml Recompiled lockfile; updates the Copilot CLI allowlist for the model inventory workflow.
.github/workflows/copilot-pr-nlp-analysis.md Updates the source workflow prompt/template for report formatting and progressive disclosure.
.github/workflows/copilot-pr-nlp-analysis.lock.yml Regenerated compiled workflow/prompt output to match the source template changes.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comments suppressed due to low confidence (5)

.github/workflows/copilot-pr-nlp-analysis.md:287

  • Topic Analysis is now a ### section, but its child block (Identified Discussion Topics) is still also ###. The reporting guideline imported above expects H3 for main sections and H4 for subsections, so this change leaves the section hierarchy flattened.
### Topic Analysis

### Identified Discussion Topics

.github/workflows/copilot-pr-nlp-analysis.md:301

  • Keyword Trends is being promoted to the same heading level as Most Common Keywords and Phrases, which turns that subsection into a sibling. To match .github/workflows/shared/reporting.md:11-12, the nested heading here should be #### after this change.
### Keyword Trends

### Most Common Keywords and Phrases

.github/workflows/copilot-pr-nlp-analysis.md:311

  • Conversation Patterns is now a top-level ###, but User ↔ Copilot Exchange Analysis stays at ### as well. That makes the subsection a sibling instead of a child, which is inconsistent with the H3/H4 structure required by .github/workflows/shared/reporting.md:11-12.
### Conversation Patterns

### User ↔ Copilot Exchange Analysis

.github/workflows/copilot-pr-nlp-analysis.md:325

  • After changing Insights and Trends to ###, the nested headings (🔍 Key Observations, 📊 Trend Highlights) also need to move down to ####. Leaving them at the same level keeps this section flat and still violates the hierarchy from .github/workflows/shared/reporting.md:11-12.
### Insights and Trends

### 🔍 Key Observations

.github/workflows/copilot-pr-nlp-analysis.md:349

  • PR Highlights is now a top-level ###, so the per-PR blocks underneath it should be #### headings. Keeping Most Positive PR, Most Discussed PR, and Notable Topics PR at ### makes them siblings of the container section instead of children.
### PR Highlights

### Most Positive PR 😊
  • Files reviewed: 3/3 changed files
  • Comments generated: 3

- shared/copilot-pr-analysis-base.md
- shared/python-dataviz.md
- shared/python-nlp.md
- shared/reporting.md
Comment on lines +267 to 269
### Sentiment Analysis

### Overall Sentiment Distribution
# shellcheck disable=SC1003
sudo -E awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" --env-all --exclude-env COPILOT_GITHUB_TOKEN --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_API_KEY --log-level info --proxy-logs-dir /tmp/gh-aw/sandbox/firewall/logs --audit-dir /tmp/gh-aw/sandbox/firewall/audit --enable-host-access --allow-host-ports 80,443,8080 --skip-pull \
-- /bin/bash -c 'export PATH="${RUNNER_TEMP}/gh-aw/mcp-cli/bin:$PATH" && export PATH="$(find /opt/hostedtoolcache /home/runner/work/_tool -maxdepth 4 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || echo node)"; fi; "$GH_AW_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs /usr/local/bin/copilot --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-tool github --allow-tool safeoutputs --allow-tool '\''shell(cat /tmp/gh-aw/model-inventory/artifacts/copilot-billing-multipliers/multipliers.json)'\'' --allow-tool '\''shell(cat /tmp/gh-aw/model-inventory/inventory.json)'\'' --allow-tool '\''shell(cat pkg/cli/data/model_multipliers.json)'\'' --allow-tool '\''shell(cat pkg/workflow/model_aliases.go)'\'' --allow-tool '\''shell(cat)'\'' --allow-tool '\''shell(date)'\'' --allow-tool '\''shell(echo)'\'' --allow-tool '\''shell(find /tmp/gh-aw/model-inventory -type f)'\'' --allow-tool '\''shell(grep)'\'' --allow-tool '\''shell(head)'\'' --allow-tool '\''shell(jq . /tmp/gh-aw/model-inventory/artifacts/*/models.json)'\'' --allow-tool '\''shell(jq . /tmp/gh-aw/model-inventory/artifacts/*/raw.json)'\'' --allow-tool '\''shell(jq . /tmp/gh-aw/model-inventory/artifacts/copilot-billing-multipliers/multipliers.json)'\'' --allow-tool '\''shell(jq . /tmp/gh-aw/model-inventory/inventory.json)'\'' --allow-tool '\''shell(jq)'\'' --allow-tool '\''shell(ls)'\'' --allow-tool '\''shell(pwd)'\'' --allow-tool '\''shell(safeoutputs:*)'\'' --allow-tool '\''shell(sort)'\'' --allow-tool '\''shell(tail)'\'' --allow-tool '\''shell(uniq)'\'' --allow-tool '\''shell(wc)'\'' --allow-tool '\''shell(yq)'\'' --allow-tool write --allow-all-paths --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/agent-stdio.log
-- /bin/bash -c 'export PATH="${RUNNER_TEMP}/gh-aw/mcp-cli/bin:$PATH" && export PATH="$(find /opt/hostedtoolcache /home/runner/work/_tool -maxdepth 4 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || echo node)"; fi; "$GH_AW_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs /usr/local/bin/copilot --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-tool github --allow-tool safeoutputs --allow-tool '\''shell(cat /tmp/gh-aw/model-inventory/artifacts/copilot-billing-multipliers/multipliers.json)'\'' --allow-tool '\''shell(cat /tmp/gh-aw/model-inventory/inventory.json)'\'' --allow-tool '\''shell(cat pkg/cli/data/model_multipliers.json)'\'' --allow-tool '\''shell(cat pkg/workflow/model_aliases.go)'\'' --allow-tool '\''shell(cat)'\'' --allow-tool '\''shell(date)'\'' --allow-tool '\''shell(echo)'\'' --allow-tool '\''shell(find /tmp/gh-aw/model-inventory -type f)'\'' --allow-tool '\''shell(grep)'\'' --allow-tool '\''shell(head)'\'' --allow-tool '\''shell(jq . /tmp/gh-aw/model-inventory/artifacts/*/models.json)'\'' --allow-tool '\''shell(jq . /tmp/gh-aw/model-inventory/artifacts/*/raw.json)'\'' --allow-tool '\''shell(jq . /tmp/gh-aw/model-inventory/artifacts/copilot-billing-multipliers/multipliers.json)'\'' --allow-tool '\''shell(jq . /tmp/gh-aw/model-inventory/inventory.json)'\'' --allow-tool '\''shell(jq)'\'' --allow-tool '\''shell(ls)'\'' --allow-tool '\''shell(playwright-cli:*)'\'' --allow-tool '\''shell(pwd)'\'' --allow-tool '\''shell(safeoutputs:*)'\'' --allow-tool '\''shell(sort)'\'' --allow-tool '\''shell(tail)'\'' --allow-tool '\''shell(uniq)'\'' --allow-tool '\''shell(wc)'\'' --allow-tool '\''shell(yq)'\'' --allow-tool write --allow-all-paths --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/agent-stdio.log
@pelikhan pelikhan merged commit 66facdb into main May 4, 2026
49 of 50 checks passed
@pelikhan pelikhan deleted the copilot/workflow-style-normalize-report-formatting branch May 4, 2026 17:52
Copilot AI added a commit that referenced this pull request May 4, 2026
…#30160)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[workflow-style] Normalize report formatting for non-compliant workflows

4 participants