Skip to content

Commit 1f3b6da

Browse files
fix: pin prompt URLs to version tag instead of main branch (#191)
The init command generates agent files that reference prompts via raw.githubusercontent.com URLs pointing at the main branch. If files are moved or renamed, all previously deployed agent files break. Replace "main" with "v{{ compiler_version }}" in all prompt and AGENTS.md URLs within the init-agent template and the console output hint. This leverages the existing version substitution mechanism and is consistent with how binary download URLs are already pinned. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c468320 commit 1f3b6da

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub async fn run(path: Option<&std::path::Path>, force: bool) -> Result<()> {
4444
println!(" \"Create an ADO agentic workflow that <describe your workflow>\"");
4545
println!();
4646
println!("Or use the prompt directly with any AI agent:");
47-
println!(" https://raw.githubusercontent.com/githubnext/ado-aw/main/prompts/create-ado-agentic-workflow.md");
47+
println!(" https://raw.githubusercontent.com/githubnext/ado-aw/v{version}/prompts/create-ado-agentic-workflow.md");
4848

4949
Ok(())
5050
}

templates/init-agent.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This is a **dispatcher agent** that routes your request to the appropriate speci
4848
### Create New Agentic Pipeline
4949
**Load when**: User wants to create a new agentic pipeline from scratch
5050

51-
**Prompt file**: https://raw.githubusercontent.com/githubnext/ado-aw/main/prompts/create-ado-agentic-workflow.md
51+
**Prompt file**: https://raw.githubusercontent.com/githubnext/ado-aw/v{{ compiler_version }}/prompts/create-ado-agentic-workflow.md
5252

5353
**Use cases**:
5454
- "Create an agentic pipeline that reviews PRs weekly"
@@ -58,7 +58,7 @@ This is a **dispatcher agent** that routes your request to the appropriate speci
5858
### Update Existing Pipeline
5959
**Load when**: User wants to modify an existing agent workflow file
6060

61-
**Prompt file**: https://raw.githubusercontent.com/githubnext/ado-aw/main/prompts/update-ado-agentic-workflow.md
61+
**Prompt file**: https://raw.githubusercontent.com/githubnext/ado-aw/v{{ compiler_version }}/prompts/update-ado-agentic-workflow.md
6262

6363
**Use cases**:
6464
- "Add the Azure DevOps MCP to my pipeline"
@@ -68,7 +68,7 @@ This is a **dispatcher agent** that routes your request to the appropriate speci
6868
### Debug Failing Pipeline
6969
**Load when**: User needs to troubleshoot a failing agentic pipeline
7070

71-
**Prompt file**: https://raw.githubusercontent.com/githubnext/ado-aw/main/prompts/debug-ado-agentic-workflow.md
71+
**Prompt file**: https://raw.githubusercontent.com/githubnext/ado-aw/v{{ compiler_version }}/prompts/debug-ado-agentic-workflow.md
7272

7373
**Use cases**:
7474
- "Why is my agentic pipeline failing?"
@@ -111,4 +111,4 @@ When a user interacts with you:
111111
- Agent files must be compiled with `ado-aw compile` after YAML frontmatter changes
112112
- Markdown body (agent instructions) changes do NOT require recompilation
113113
- The agent never has direct write access — all mutations go through safe outputs
114-
- Full reference: https://raw.githubusercontent.com/githubnext/ado-aw/main/AGENTS.md
114+
- Full reference: https://raw.githubusercontent.com/githubnext/ado-aw/v{{ compiler_version }}/AGENTS.md

0 commit comments

Comments
 (0)