Skip to content

qmd: replace paths array with pattern string and add ignore for excluded patterns#22683

Merged
pelikhan merged 5 commits intomainfrom
copilot/update-qmd-fields-collection
Mar 24, 2026
Merged

qmd: replace paths array with pattern string and add ignore for excluded patterns#22683
pelikhan merged 5 commits intomainfrom
copilot/update-qmd-fields-collection

Conversation

Copy link
Contributor

Copilot AI commented Mar 24, 2026

The QmdDocCollection exposed a paths: string[] field that was joined into a comma-separated string before being passed to the @tobilu/qmd SDK — which doesn't support comma-separated patterns. The SDK natively expects a single pattern: string per collection and an optional ignore: string[] for excluded patterns.

Changes

  • Go types/parser (tools_types.go, tools_parser.go): Paths []stringPattern string and new Ignore []string on QmdDocCollection; parser reads pattern and ignore keys
  • Compiler (qmd.go): qmdCheckoutEntry.Patterns []stringPattern string + Ignore []string; buildQmdConfig passes both directly
  • JS runtime (qmd_index.cjs): typedef updated to pattern?: string, ignore?: string[]; uses checkout.pattern and checkout.ignore directly; summary table shows ignore patterns
  • Schema (main_workflow_schema.json): qmdCollection.paths (array) → pattern (string) + ignore (array); examples updated
  • Workflows (shared/mcp/qmd-docs.md, qmd.md, smoke-codex.md, dev.md): migrated from paths: [...] to pattern: "..."
  • Docs: qmd.md, tools.md, frontmatter-full.md regenerated

Before / After

# Before
checkouts:
  - name: docs
    paths:
      - docs/**/*.md
      - .github/**/*.md

# After
checkouts:
  - name: docs
    pattern: "docs/**/*.md"
    ignore:
      - "**/node_modules/**"

No backward compatibility — existing workflows using paths must be updated.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@pelikhan
Copy link
Contributor

@copilot Support excluded patterns

…DK data structure

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/3ed96cb2-0a3e-4dc3-aa91-86d0473d5aa2
Copilot AI changed the title [WIP] Update QMD fields to match SDK data structure qmd: replace paths array with pattern string to match SDK data structure Mar 24, 2026
Copilot AI requested a review from pelikhan March 24, 2026 13:22
- docs/src/content/docs/**
- .github/agents/**
- .github/aw/**
pattern: "**"
Copy link
Contributor

Choose a reason for hiding this comment

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

docs/**/.md @copilot

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to "docs/**/*.md" in 1f3b240.

paths:
- docs/src/**/*.md
- docs/src/**/*.mdx
pattern: "docs/src/**"
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot docs/src/**/.md

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to "docs/src/**/*.md" in 1f3b240.

- docs/src/content/docs/**
- .github/agents/**
- .github/aw/**
pattern: "**"
Copy link
Contributor

Choose a reason for hiding this comment

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

See other comments

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to "docs/**/*.md" in 1f3b240.

Copy link
Contributor Author

Copilot AI commented Mar 24, 2026

@copilot Support excluded patterns

Added ignore: string[] to QmdDocCollection matching the SDK's native Collection.ignore?: string[] field (commit 7f2602e).

checkouts:
  - name: docs
    pattern: "**/*.md"
    ignore:
      - "**/node_modules/**"
      - "**/*.test.md"

The field flows through the Go types → JSON config → qmd_index.cjscreateStore() unchanged.

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 5526111/b320/vet-c /opt/hostedtoolc&#34;prettier&#34; --write &#39;scripts/**/*.js&#39; --ignore-path .prettierignore --log-level=e!../../../pkg/workflow/js/**/*.json git rev-�� --show-toplevel /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet /usr/bin/git -unreachable=falsh /tmp/go-build257-c 0/x64/bin/node git (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 5526111/b069/vet/home/REDACTED/.npm/_npx/b388654678d519d9/node_modules/.bin/prettier /opt/hostedtoolc--write node s h ../../../.pret.prettierignore --package-lock-o--log-level=error /usr/bin/git -unreachable=falbash /tmp/go-build257--norc /opt/hostedtoolc--noprofile git (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha -unreachable=false /tmp/go-build2575526111/b188/vet.cfg /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha --noprofile (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel -tests 0/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel x_amd64/vet /usr/bin/git --get-regexp --global x_amd64/vet git rev-�� --show-toplevel x_amd64/vet /usr/bin/git get --local 64/pkg/tool/linu--show-toplevel git (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 ithub/workflows/blog-auditor.md (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha -unreachable=false /tmp/go-build2575526111/b014/vet.cfg 5526111/b288/vet.cfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha Actor: ${{ github.actor }}, Repo: ${{ github.repository }} x_amd64/vet ache/node/24.14.0/x64/bin/node (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha --noprofile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha -unreachable=false /tmp/go-build2575526111/b013/vet.cfg 5526111/b284/vet.cfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha -unreachable=false /tmp/go-build2575526111/b018/vet.cfg 5526111/b245/vet.cfg (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha -unreachable=false /tmp/go-build2575526111/b006/vet.cfg 5526111/b279/vet.cfg (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha -unreachable=false /tmp/go-build2575526111/b009/vet.cfg 5526111/b278/vet.cfg (http block)
  • https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha --local .cfg 64/pkg/tool/linux_amd64/vet (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 h ../../../.prettierignore /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet /usr/bin/git -bool -buildtags 5526111/b315/vet--write git rev-�� w/js/**/*.json&#39; --ignore-path /opt/hostedtoolc../../../.prettierignore /usr/bin/git -unreachable=falinfocmp /tmp/go-build257-1 /opt/hostedtoolcxterm-color git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq .object.sha --show-toplevel git ode --show-toplevel (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .visibility json&#39; --ignore-premote.origin.url git r: $owner, name: $name) { hasDiscussionsEnabled } } --show-toplevel -tests ache/node/24.14.graphql git rev-�� th .prettierigno-f ache/node/24.14.owner=github odules/npm/node_-f --show-toplevel (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .visibility --show-toplevel git r: $owner, name: $name) { hasDiscussionsEnabled } } nore x_amd64/vet /usr/bin/git git rev-�� ithub/workflows git repository(owne-f --show-toplevel x_amd64/vet /usr/bin/git node (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq .object.sha 7309/001/stability-test.md gpg.program 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq .object.sha --local .cfg 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha (http block)
  • https://api.github.com/repos/githubnext/agentics/git/ref/tags/
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha re --log-level=error /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet de -unreachable=falgit /tmp/go-build257config /opt/hostedtoolc--get git /pre�� --show-toplevel /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet /usr/bin/git -bool -buildtags /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha */*.ts&#39; &#39;**/*.jsremote.origin.url git de/node/bin/sh --show-toplevel (http block)
  • https://api.github.com/repos/nonexistent/action/git/ref/tags/v999.999.999
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha (http block)

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

Copilot AI changed the title qmd: replace paths array with pattern string to match SDK data structure qmd: replace paths array with pattern string and add ignore for excluded patterns Mar 24, 2026
Copilot AI requested a review from pelikhan March 24, 2026 13:34
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/b68ff563-5793-43b5-b49c-509730a9a16e
Copy link
Contributor Author

Copilot AI commented Mar 24, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

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 DmUjry2JudFJ (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 MC/wEaddiFfYiXfL-C (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 (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .visibility (http block)
  • https://api.github.com/repos/githubnext/agentics/git/ref/tags/
    • Triggering command: /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:

@pelikhan pelikhan marked this pull request as ready for review March 24, 2026 13:48
Copilot AI review requested due to automatic review settings March 24, 2026 13:48
Copy link
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

Updates the qmd tool configuration model to match @tobilu/qmd’s expected inputs by replacing multi-pattern paths/patterns arrays with a single pattern string per collection and adding optional ignore globs.

Changes:

  • Go: QmdDocCollection.Paths []stringPattern string + Ignore []string, with parser + compiler config generation updated accordingly.
  • JS runtime: qmd indexing script and tests updated to consume pattern/ignore and display ignore globs in the step summary.
  • Schema/docs/workflows: schema and examples migrated from paths to pattern + optional ignore, and existing workflows regenerated.

Reviewed changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 15 comments.

Show a summary per file
File Description
pkg/workflow/tools_types.go Replaces paths with pattern and introduces ignore on qmd collections.
pkg/workflow/tools_parser.go Parses pattern/ignore keys into the updated Go types.
pkg/workflow/qmd.go Updates JSON config emitted to the JS indexer to use pattern/ignore.
pkg/parser/schemas/main_workflow_schema.json Migrates schema from paths array to pattern string + ignore array, updates examples.
docs/src/content/docs/reference/tools.md Updates qmd quick example to use pattern.
docs/src/content/docs/reference/qmd.md Updates qmd reference examples/field table; documents ignore.
docs/src/content/docs/reference/frontmatter-full.md Regenerated frontmatter reference output reflecting updated schema/examples.
actions/setup/js/qmd_index.test.cjs Updates tests for new config shape and summary table columns; adds ignore-summary coverage.
actions/setup/js/qmd_index.cjs Switches checkout handling from patterns[] to pattern + optional ignore; updates summary output.
.github/workflows/weekly-blog-post-writer.lock.yml Regenerated lock workflow with new QMD_CONFIG_JSON shape.
.github/workflows/unbloat-docs.lock.yml Regenerated lock workflow with new QMD_CONFIG_JSON shape.
.github/workflows/technical-doc-writer.lock.yml Regenerated lock workflow with new QMD_CONFIG_JSON shape.
.github/workflows/smoke-codex.md Migrates qmd config to pattern.
.github/workflows/smoke-codex.lock.yml Regenerated lock workflow with new QMD_CONFIG_JSON shape.
.github/workflows/shared/mcp/qmd.md Migrates shared qmd MCP config to pattern.
.github/workflows/shared/mcp/qmd-docs.md Migrates shared qmd-docs MCP config to pattern.
.github/workflows/glossary-maintainer.lock.yml Regenerated lock workflow with new QMD_CONFIG_JSON shape.
.github/workflows/dictation-prompt.lock.yml Regenerated lock workflow with new QMD_CONFIG_JSON shape.
.github/workflows/developer-docs-consolidator.lock.yml Regenerated lock workflow with new QMD_CONFIG_JSON shape.
.github/workflows/dev.md Migrates qmd config to pattern.
.github/workflows/dev.lock.yml Regenerated lock workflow with new QMD_CONFIG_JSON shape.
.github/workflows/daily-doc-updater.lock.yml Regenerated lock workflow with new QMD_CONFIG_JSON shape.
.github/workflows/daily-doc-healer.lock.yml Regenerated lock workflow with new QMD_CONFIG_JSON shape.

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

Comment on lines 16 to 18
- name: gh-aw
paths:
- docs/src/content/docs/**
- .github/agents/**
- .github/aw/**
pattern: "docs/**/*.md"
context: "gh-aw project documentation, agent definitions, and workflow authoring instructions"
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

Same issue as qmd-docs.md: pattern: "docs/**/*.md" does not match the repository’s .mdx documentation pages (e.g. docs/src/content/docs/**/*.mdx) and won’t include agent/workflow instruction files under .github/**, despite the context string claiming it does. Update the pattern(s) (or split into multiple collections) so the indexed paths actually match the described content.

See below for a potential fix:

      - name: gh-aw-docs
        pattern: "docs/src/content/docs/**/*.mdx"
        context: "gh-aw project documentation"
      - name: gh-aw-workflows
        pattern: ".github/**/*.md"
        context: "gh-aw agent definitions and workflow authoring instructions"

Copilot uses AI. Check for mistakes.
env:
QMD_CONFIG_JSON: |
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","patterns":["docs/src/content/docs/**",".github/agents/**",".github/aw/**"],"context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

This workflow’s lock file now configures qmd with pattern: "docs/**/*.md", which likely omits the primary .mdx docs and the .github/** instruction sources. Adjust the qmd checkout patterns (or split into separate collections) and regenerate the lock workflow so the indexed content matches the workflow’s intent.

Suggested change
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"},{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.mdx","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"},{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":".github/**","context":"gh-aw GitHub workflows, actions, and agent instruction sources"}]}

Copilot uses AI. Check for mistakes.
env:
QMD_CONFIG_JSON: |
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","patterns":["docs/src/content/docs/**",".github/agents/**",".github/aw/**"],"context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

The lock workflow’s qmd checkout pattern docs/**/*.md won’t include .mdx pages under docs/src/content/docs/** and drops .github/** content that used to be indexed. This may cause qmd searches to return few/no relevant results. Update the checkout(s) to cover the intended doc/instruction sources and recompile.

Suggested change
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"},{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/src/content/docs/**/*.mdx","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"},{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":".github/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}

Copilot uses AI. Check for mistakes.
env:
QMD_CONFIG_JSON: |
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","patterns":["docs/src/content/docs/**",".github/agents/**",".github/aw/**"],"context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

This lock workflow now indexes only docs/**/*.md for qmd, which is likely incomplete for this repo (docs are largely .mdx under docs/src/content/docs/**, and .github/** instruction files are excluded). Update the qmd checkout patterns / collections and regenerate the lock file.

Suggested change
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.{md,mdx}","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"},{"name":"gh-aw-github","path":"${GITHUB_WORKSPACE}","pattern":".github/**/*.md","context":"gh-aw GitHub workflows, configs, and instruction files"}]}

Copilot uses AI. Check for mistakes.
env:
QMD_CONFIG_JSON: |
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"docs","path":"${GITHUB_WORKSPACE}","patterns":["docs/src/**/*.md","docs/src/**/*.mdx"],"context":"gh-aw project documentation"}],"searches":[{"name":"issues","type":"issues","max":500,"tokenEnvVar":"QMD_SEARCH_TOKEN_0"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"docs","path":"${GITHUB_WORKSPACE}","pattern":"docs/src/**/*.md","context":"gh-aw project documentation"}],"searches":[{"name":"issues","type":"issues","max":500,"tokenEnvVar":"QMD_SEARCH_TOKEN_0"}]}
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

The qmd checkout pattern docs/src/**/*.md in this lock workflow will miss .mdx docs under docs/src/content/docs/**, likely resulting in an incomplete docs index. Update the pattern to include .mdx (or target the docs content directory) and recompile so the lock file matches the updated source workflow.

Suggested change
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"docs","path":"${GITHUB_WORKSPACE}","pattern":"docs/src/**/*.md","context":"gh-aw project documentation"}],"searches":[{"name":"issues","type":"issues","max":500,"tokenEnvVar":"QMD_SEARCH_TOKEN_0"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"docs","path":"${GITHUB_WORKSPACE}","pattern":"docs/src/**/*.{md,mdx}","context":"gh-aw project documentation"}],"searches":[{"name":"issues","type":"issues","max":500,"tokenEnvVar":"QMD_SEARCH_TOKEN_0"}]}

Copilot uses AI. Check for mistakes.
context: "Project documentation"
- name: sdk-docs
paths: [README.md, docs/**/*.md]
pattern: "docs/**/*.md"
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

In the multi-checkout example, sdk-docs previously included README.md as well as docs globs, but now the example only indexes docs/**/*.md. If the intent is to show how to include both root README and docs, update the example to use a pattern that includes both (or demonstrate multiple collections).

Suggested change
pattern: "docs/**/*.md"
pattern: "{README.md,docs/**/*.md}"

Copilot uses AI. Check for mistakes.
- docs/src/content/docs/**
- .github/agents/**
- .github/aw/**
pattern: "docs/**/*.md"
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

The qmd collection is described as indexing “project documentation, agent definitions, and workflow authoring instructions”, but the new pattern only matches docs/**/*.md (excluding .mdx content under docs/src/content/docs/** and excluding .github/agents/** / .github/aw/**). This will likely produce an incomplete/empty index. Consider splitting this into multiple qmd collections (one per directory) and/or using a pattern that includes docs/src/content/docs/** and .mdx files, with ignore to exclude unwanted paths.

Suggested change
pattern: "docs/**/*.md"
pattern: "**/*.{md,mdx}"
ignore:
- ".git/**"
- "node_modules/**"

Copilot uses AI. Check for mistakes.
env:
QMD_CONFIG_JSON: |
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","patterns":["docs/src/content/docs/**",".github/agents/**",".github/aw/**"],"context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

This lock workflow’s QMD_CONFIG_JSON now uses pattern: "docs/**/*.md", which will not include .mdx docs (under docs/src/content/docs/**) and won’t include .github/agents/** / .github/aw/** referenced by the context string. Update the qmd checkout(s) to cover the intended sources and regenerate the lock file.

Suggested change
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw-docs","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.{md,mdx}","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"},{"name":"gh-aw-agents","path":"${GITHUB_WORKSPACE}","pattern":".github/agents/**","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"},{"name":"gh-aw-aw","path":"${GITHUB_WORKSPACE}","pattern":".github/aw/**","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}

Copilot uses AI. Check for mistakes.
env:
QMD_CONFIG_JSON: |
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","patterns":["docs/src/content/docs/**",".github/agents/**",".github/aw/**"],"context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

The QMD_CONFIG_JSON in this lock file switched to pattern: "docs/**/*.md", which excludes .mdx documentation and .github/** instruction sources that were previously indexed. This likely makes qmd search much less useful for this workflow. Update patterns / split into multiple collections and recompile the workflow to update this lock file.

Suggested change
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"**/*.{md,mdx}","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}

Copilot uses AI. Check for mistakes.
env:
QMD_CONFIG_JSON: |
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","patterns":["docs/src/content/docs/**",".github/agents/**",".github/aw/**"],"context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

The updated qmd checkout pattern docs/**/*.md in this lock workflow will not match .mdx docs and will exclude .github/** instruction files that the context suggests should be searchable. Update the checkout config to include the intended sources (possibly as multiple collections) and recompile to refresh this lock file.

Suggested change
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"}]}
{"dbPath":"/tmp/gh-aw/qmd-index","checkouts":[{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.md","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"},{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":"docs/**/*.mdx","context":"gh-aw project documentation, agent definitions, and workflow authoring instructions"},{"name":"gh-aw","path":"${GITHUB_WORKSPACE}","pattern":".github/**","context":"gh-aw GitHub configuration, workflows, and instruction files"}]}

Copilot uses AI. Check for mistakes.
@pelikhan
Copy link
Contributor

@copilot Apply comments

…it collections, narrow smoke-codex

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/0216bcb9-1bdc-48b3-8924-6c859bb685bc
Copy link
Contributor Author

Copilot AI commented Mar 24, 2026

@copilot Apply comments

Applied in caf7e6b:

  • qmd-docs.md: "docs/**/*.md""**/*.{md,mdx}" with ignore: [".git/**", "node_modules/**"]
  • qmd.md: split into two collections — docs/src/content/docs/**/*.mdx + .github/**/*.md
  • dev.md: "docs/src/**/*.md""docs/src/**/*.{md,mdx}"
  • smoke-codex.md: "docs/src/**""docs/src/**/*.{md,mdx}"
  • docs/reference/qmd.md example: sdk-docs "docs/**/*.md""{README.md,docs/**/*.md}"

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 mwCvnVmfeMOx (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 (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .visibility (http block)
  • https://api.github.com/repos/githubnext/agentics/git/ref/tags/
    • Triggering command: /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:

@pelikhan pelikhan merged commit 420129c into main Mar 24, 2026
@pelikhan pelikhan deleted the copilot/update-qmd-fields-collection branch March 24, 2026 14:19
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.

3 participants