Skip to content

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

Description

@github-actions

Caution

Protected files were modified in this change.
This pull request is in request_review mode and requires explicit human scrutiny before merge.

Protected files: .github/workflows/q.lock.yml, .github/workflows/q.md

What changed

.github/workflows/q.md had three near-identical conditional blocks — one each for issue, PR, and discussion parent context. Each block repeated the same instruction: retrieve the full item details, consider the context, use it to inform the analysis. Only the label differed.

This PR collapses all three into a single {{#if ...}} block using the combined condition.

Also fixed Phase 4: two list items were numbered 1., and the compile instruction was unnecessarily wrapped in a code fence. Both are now clean numbered prose.

Files changed

  • .github/workflows/q.md
  • .github/workflows/q.lock.yml (regenerated)

Why this is more Skills-like

The original phrasing ("Important: Before proceeding with your analysis, retrieve the full ... details") reads like boilerplate. The replacement is one direct sentence covering all trigger types — short, outcome-focused, no repeated preamble. That matches GitHub Skills lesson tone.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by ✂️ Workflow Skills Editor · 52.6 AIC · ⌖ 9.7 AIC · ⊞ 5.1K ·

  • expires on Aug 5, 2026, 9:55 PM UTC

Note

This was originally intended as a pull request, but the git push operation failed.

Original error: pushSignedCommits: refusing unsigned push for branch 'workflow-skills-editor/q-context-dedup-0cdfc96ef33cad26': Signed-commit payload violates file-protection policy (request_review): .github/workflows/q.lock.yml, .github/workflows/q.md

Workflow Run: View run details and download bundle artifact

The bundle file is available in the agent artifact in the workflow run linked above.

To create a pull request with the changes:

# Download the artifact from the workflow run
gh run download 30953785695 -n agent -D /tmp/agent-30953785695

# Fetch the bundle into a temporary ref, then update the local branch
git fetch /tmp/agent-30953785695/aw-workflow-skills-editor-q-context-dedup.bundle refs/heads/workflow-skills-editor/q-context-dedup:refs/bundles/create-pr-workflow-skills-editor-q-context-dedup-0cdfc96ef33cad26-90a80d11
git update-ref refs/heads/workflow-skills-editor/q-context-dedup-0cdfc96ef33cad26 refs/bundles/create-pr-workflow-skills-editor-q-context-dedup-0cdfc96ef33cad26-90a80d11
git checkout workflow-skills-editor/q-context-dedup-0cdfc96ef33cad26
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d refs/bundles/create-pr-workflow-skills-editor-q-context-dedup-0cdfc96ef33cad26-90a80d11

# Push the branch to origin
git push origin workflow-skills-editor/q-context-dedup-0cdfc96ef33cad26

# Create the pull request
gh pr create --title '[workflow-editor] q: collapse three duplicate parent-context blocks into one' --base main --head workflow-skills-editor/q-context-dedup-0cdfc96ef33cad26 --repo githubnext/gh-aw-workshop

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions