Skip to content

[workflow-editor] q: collapse three duplicate parent-context blocks into one - #2502

Draft
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/workflow-editor-collapse-duplicate-blocks
Draft

[workflow-editor] q: collapse three duplicate parent-context blocks into one#2502
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/workflow-editor-collapse-duplicate-blocks

Conversation

Copilot AI commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

.github/workflows/q.md carried three near-identical conditional blocks — issue, PR, and discussion parent context — each repeating the same "retrieve full details, consider context, inform your analysis" boilerplate with only the noun changed.

Changes

  • Deduplicated parent context: the three {{#if}} blocks are replaced by one block on the combined condition, with a single direct sentence covering all trigger types.
  • Phase 4 cleanup: two list items were both numbered 1.; the compile instruction was wrapped in a code fence for no reason. Both are now plain numbered prose.
  • Lock file: .github/workflows/q.lock.yml regenerated via gh aw compile q. The compiler now emits a single GH_AW_EXPR_F4C95076 env var in place of the three per-event ones.
{{#if ${{ github.event.issue.number || github.event.pull_request.number || github.event.discussion.number }} }}
### Parent Context

This workflow was triggered from a comment on an issue, pull request, or discussion. Retrieve the full details of that item — title, body, labels, changed files, and earlier comments — and use that context to inform your investigation and recommendations.
{{/if}}

Note: this touches protected files (q.md, q.lock.yml), which is why the originating agentic run could not push directly.

…ering

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Collapse duplicate parent-context blocks in workflow editor [workflow-editor] q: collapse three duplicate parent-context blocks into one Aug 5, 2026
Copilot AI requested a review from pelikhan August 5, 2026 05:22
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-editor] q: collapse three duplicate parent-context blocks into one

2 participants