Draft
[workflow-editor] q: collapse three duplicate parent-context blocks into one#2502
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.github/workflows/q.mdcarried 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
{{#if}}blocks are replaced by one block on the combined condition, with a single direct sentence covering all trigger types.1.; the compile instruction was wrapped in a code fence for no reason. Both are now plain numbered prose..github/workflows/q.lock.ymlregenerated viagh aw compile q. The compiler now emits a singleGH_AW_EXPR_F4C95076env 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.