From edc98e2564b5e028b43a6cea57c9d20e8f4177d0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 13:13:03 +0000 Subject: [PATCH 1/2] Initial plan From 87514eb8cf04f5d8c1e6034b5eac5a80236751b2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 13:18:24 +0000 Subject: [PATCH 2/2] Allow optional # prefix in update_project draft_issue_id and temporary_id patterns Align pkg/workflow/js/safe_outputs_tools.json schema with actions/setup/js/safe_outputs_tools.json and the update_project handler implementation which already accepts and strips # prefix. Changes: - Update draft_issue_id pattern from ^aw_[A-Za-z0-9]{3,8}$ to ^#?aw_[A-Za-z0-9]{3,8}$ - Update temporary_id pattern from ^aw_[A-Za-z0-9]{3,8}$ to ^#?aw_[A-Za-z0-9]{3,8}$ - Update descriptions to reflect optional # prefix support Fixes schema validation failures for inputs like #aw_abc123 that work at runtime. Addresses: https://github.com/github/gh-aw/pull/16098#discussion_r2812184906 Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com> --- pkg/workflow/js/safe_outputs_tools.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/workflow/js/safe_outputs_tools.json b/pkg/workflow/js/safe_outputs_tools.json index fc09823964a..5f51146f2b4 100644 --- a/pkg/workflow/js/safe_outputs_tools.json +++ b/pkg/workflow/js/safe_outputs_tools.json @@ -882,13 +882,13 @@ }, "draft_issue_id": { "type": "string", - "pattern": "^aw_[A-Za-z0-9]{3,8}$", - "description": "Temporary ID of an existing draft issue to update (e.g., 'aw_abc1', 'aw_Test123'). Use this to reference a draft created earlier with a matching temporary_id. When provided, draft_title is not required for updates." + "pattern": "^#?aw_[A-Za-z0-9]{3,8}$", + "description": "Temporary ID of an existing draft issue to update (e.g., 'aw_abc1', '#aw_Test123'). Use this to reference a draft created earlier with a matching temporary_id. When provided, draft_title is not required for updates." }, "temporary_id": { "type": "string", - "pattern": "^aw_[A-Za-z0-9]{3,8}$", - "description": "Unique temporary identifier for this draft issue (e.g., 'aw_abc1', 'aw_Test123'). Provide this when creating a new draft to enable future updates via draft_issue_id. Format: 'aw_' followed by 3 to 8 alphanumeric characters." + "pattern": "^#?aw_[A-Za-z0-9]{3,8}$", + "description": "Unique temporary identifier for this draft issue (e.g., 'aw_abc1', '#aw_Test123'). Provide this when creating a new draft to enable future updates via draft_issue_id. Format: optional leading '#', then 'aw_' followed by 3 to 8 alphanumeric characters." }, "fields": { "type": "object",