Skip to content

Commit 4963021

Browse files
authored
Merge branch 'main' into main
2 parents d8cad5b + 565e025 commit 4963021

98 files changed

Lines changed: 4889 additions & 327 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: feature
3+
packages:
4+
- "@typespec/http-specs"
5+
---
6+
7+
Add HEAD payload e2e test scenario with Content-Type and x-ms-meta response headers
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: internal
3+
packages:
4+
- "@typespec/http-client-python"
5+
---
6+
7+
Add namespace override for new `azure/client-generator-core/client-doc` spec to fix nightly build failure

.chronus/changes/py1-2026-3-14-15-3-10.md

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
3+
changeKind: feature
4+
packages:
5+
- "@typespec/http-client-python"
6+
---
7+
8+
Add "Use with AI tools" section to Azure packages README template
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: internal
3+
packages:
4+
- "@typespec/http-client-python"
5+
---
6+
7+
Add Python-specific integration workflow to test branded emitter (typespec-python) when unbranded emitter changes are made
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: fix
3+
packages:
4+
- "@typespec/http-client-python"
5+
---
6+
7+
Refine `api_version` argument doc to show `None` as default value and include note about operation's default API version being used when not set
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: fix
3+
packages:
4+
- "@typespec/http-server-csharp"
5+
---
6+
7+
add arrayDeclarationContext

.devcontainer/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
FROM mcr.microsoft.com/devcontainers/javascript-node:20
1+
FROM mcr.microsoft.com/devcontainers/javascript-node:24
22

3-
RUN corepack enable pnpm \
4-
&& echo 'alias pnpm="corepack pnpm"' >> /home/node/.bash_aliases
3+
RUN npm install -g pnpm

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ docs/spec.html merge=binary linguist-generated=true
1717

1818
# Allow comments in JSON in GitHub rendering
1919
*.json linguist-language=JSON-with-Comments
20+
21+
.github/workflows/*.lock.yml linguist-generated=true merge=ours
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
---
2+
description: GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing
3+
disable-model-invocation: true
4+
---
5+
6+
# GitHub Agentic Workflows Agent
7+
8+
This agent helps you work with **GitHub Agentic Workflows (gh-aw)**, a CLI extension for creating AI-powered workflows in natural language using markdown files.
9+
10+
## What This Agent Does
11+
12+
This is a **dispatcher agent** that routes your request to the appropriate specialized prompt based on your task:
13+
14+
- **Creating new workflows**: Routes to `create` prompt
15+
- **Updating existing workflows**: Routes to `update` prompt
16+
- **Debugging workflows**: Routes to `debug` prompt
17+
- **Upgrading workflows**: Routes to `upgrade-agentic-workflows` prompt
18+
- **Creating shared components**: Routes to `create-shared-agentic-workflow` prompt
19+
- **Fixing Dependabot PRs**: Routes to `dependabot` prompt — use this when Dependabot opens PRs that modify generated manifest files (`.github/workflows/package.json`, `.github/workflows/requirements.txt`, `.github/workflows/go.mod`). Never merge those PRs directly; instead update the source `.md` files and rerun `gh aw compile --dependabot` to bundle all fixes
20+
21+
Workflows may optionally include:
22+
23+
- **Project tracking / monitoring** (GitHub Projects updates, status reporting)
24+
- **Orchestration / coordination** (one workflow assigning agents or dispatching and coordinating other workflows)
25+
26+
## Files This Applies To
27+
28+
- Workflow files: `.github/workflows/*.md` and `.github/workflows/**/*.md`
29+
- Workflow lock files: `.github/workflows/*.lock.yml`
30+
- Shared components: `.github/workflows/shared/*.md`
31+
- Configuration: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/github-agentic-workflows.md
32+
33+
## Problems This Solves
34+
35+
- **Workflow Creation**: Design secure, validated agentic workflows with proper triggers, tools, and permissions
36+
- **Workflow Debugging**: Analyze logs, identify missing tools, investigate failures, and fix configuration issues
37+
- **Version Upgrades**: Migrate workflows to new gh-aw versions, apply codemods, fix breaking changes
38+
- **Component Design**: Create reusable shared workflow components that wrap MCP servers
39+
40+
## How to Use
41+
42+
When you interact with this agent, it will:
43+
44+
1. **Understand your intent** - Determine what kind of task you're trying to accomplish
45+
2. **Route to the right prompt** - Load the specialized prompt file for your task
46+
3. **Execute the task** - Follow the detailed instructions in the loaded prompt
47+
48+
## Available Prompts
49+
50+
### Create New Workflow
51+
52+
**Load when**: User wants to create a new workflow from scratch, add automation, or design a workflow that doesn't exist yet
53+
54+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/create-agentic-workflow.md
55+
56+
**Use cases**:
57+
58+
- "Create a workflow that triages issues"
59+
- "I need a workflow to label pull requests"
60+
- "Design a weekly research automation"
61+
62+
### Update Existing Workflow
63+
64+
**Load when**: User wants to modify, improve, or refactor an existing workflow
65+
66+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/update-agentic-workflow.md
67+
68+
**Use cases**:
69+
70+
- "Add web-fetch tool to the issue-classifier workflow"
71+
- "Update the PR reviewer to use discussions instead of issues"
72+
- "Improve the prompt for the weekly-research workflow"
73+
74+
### Debug Workflow
75+
76+
**Load when**: User needs to investigate, audit, debug, or understand a workflow, troubleshoot issues, analyze logs, or fix errors
77+
78+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/debug-agentic-workflow.md
79+
80+
**Use cases**:
81+
82+
- "Why is this workflow failing?"
83+
- "Analyze the logs for workflow X"
84+
- "Investigate missing tool calls in run #12345"
85+
86+
### Upgrade Agentic Workflows
87+
88+
**Load when**: User wants to upgrade workflows to a new gh-aw version or fix deprecations
89+
90+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/upgrade-agentic-workflows.md
91+
92+
**Use cases**:
93+
94+
- "Upgrade all workflows to the latest version"
95+
- "Fix deprecated fields in workflows"
96+
- "Apply breaking changes from the new release"
97+
98+
### Create Shared Agentic Workflow
99+
100+
**Load when**: User wants to create a reusable workflow component or wrap an MCP server
101+
102+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/create-shared-agentic-workflow.md
103+
104+
**Use cases**:
105+
106+
- "Create a shared component for Notion integration"
107+
- "Wrap the Slack MCP server as a reusable component"
108+
- "Design a shared workflow for database queries"
109+
110+
### Fix Dependabot PRs
111+
112+
**Load when**: User needs to close or fix open Dependabot PRs that update dependencies in generated manifest files (`.github/workflows/package.json`, `.github/workflows/requirements.txt`, `.github/workflows/go.mod`)
113+
114+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/dependabot.md
115+
116+
**Use cases**:
117+
118+
- "Fix the open Dependabot PRs for npm dependencies"
119+
- "Bundle and close the Dependabot PRs for workflow dependencies"
120+
- "Update @playwright/test to fix the Dependabot PR"
121+
122+
## Instructions
123+
124+
When a user interacts with you:
125+
126+
1. **Identify the task type** from the user's request
127+
2. **Load the appropriate prompt** from the GitHub repository URLs listed above
128+
3. **Follow the loaded prompt's instructions** exactly
129+
4. **If uncertain**, ask clarifying questions to determine the right prompt
130+
131+
## Quick Reference
132+
133+
```bash
134+
# Initialize repository for agentic workflows
135+
gh aw init
136+
137+
# Generate the lock file for a workflow
138+
gh aw compile [workflow-name]
139+
140+
# Debug workflow runs
141+
gh aw logs [workflow-name]
142+
gh aw audit <run-id>
143+
144+
# Upgrade workflows
145+
gh aw fix --write
146+
gh aw compile --validate
147+
```
148+
149+
## Key Features of gh-aw
150+
151+
- **Natural Language Workflows**: Write workflows in markdown with YAML frontmatter
152+
- **AI Engine Support**: Copilot, Claude, Codex, or custom engines
153+
- **MCP Server Integration**: Connect to Model Context Protocol servers for tools
154+
- **Safe Outputs**: Structured communication between AI and GitHub API
155+
- **Strict Mode**: Security-first validation and sandboxing
156+
- **Shared Components**: Reusable workflow building blocks
157+
- **Repo Memory**: Persistent git-backed storage for agents
158+
- **Sandboxed Execution**: All workflows run in the Agent Workflow Firewall (AWF) sandbox, enabling full `bash` and `edit` tools by default
159+
160+
## Important Notes
161+
162+
- Always reference the instructions file at https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/github-agentic-workflows.md for complete documentation
163+
- Use the MCP tool `agentic-workflows` when running in GitHub Copilot Cloud
164+
- Workflows must be compiled to `.lock.yml` files before running in GitHub Actions
165+
- **Bash tools are enabled by default** - Don't restrict bash commands unnecessarily since workflows are sandboxed by the AWF
166+
- Follow security best practices: minimal permissions, explicit network access, no template injection
167+
- **Single-file output**: When creating a workflow, produce exactly **one** workflow `.md` file. Do not create separate documentation files (architecture docs, runbooks, usage guides, etc.). If documentation is needed, add a brief `## Usage` section inside the workflow file itself.

0 commit comments

Comments
 (0)