diff --git a/.github/workflows/campaign-manager.lock.yml b/.github/workflows/campaign-manager.lock.yml index 2931b1c16d..fee2ef8661 100644 --- a/.github/workflows/campaign-manager.lock.yml +++ b/.github/workflows/campaign-manager.lock.yml @@ -327,35 +327,6 @@ jobs: "description": "Add or update items in GitHub Projects v2 boards. Can add issues/PRs to a project and update custom field values. Requires the project URL, content type (issue or pull_request), and content number. Use campaign_id to group related items.", "inputSchema": { "additionalProperties": false, - "oneOf": [ - { - "properties": { - "content_type": { - "enum": [ - "issue", - "pull_request" - ] - } - }, - "required": [ - "project", - "content_type", - "content_number" - ] - }, - { - "properties": { - "content_type": { - "const": "draft_issue" - } - }, - "required": [ - "project", - "content_type", - "draft_title" - ] - } - ], "properties": { "campaign_id": { "description": "Campaign identifier to group related project items. Used to track items created by the same campaign or workflow run.", @@ -396,6 +367,10 @@ jobs: "type": "string" } }, + "required": [ + "project", + "content_type" + ], "type": "object" }, "name": "update_project" diff --git a/.github/workflows/go-file-size-reduction-project64.campaign.g.lock.yml b/.github/workflows/go-file-size-reduction-project64.campaign.g.lock.yml index c10bc7726e..9278840d0e 100644 --- a/.github/workflows/go-file-size-reduction-project64.campaign.g.lock.yml +++ b/.github/workflows/go-file-size-reduction-project64.campaign.g.lock.yml @@ -278,35 +278,6 @@ jobs: "description": "Add or update items in GitHub Projects v2 boards. Can add issues/PRs to a project and update custom field values. Requires the project URL, content type (issue or pull_request), and content number. Use campaign_id to group related items.", "inputSchema": { "additionalProperties": false, - "oneOf": [ - { - "properties": { - "content_type": { - "enum": [ - "issue", - "pull_request" - ] - } - }, - "required": [ - "project", - "content_type", - "content_number" - ] - }, - { - "properties": { - "content_type": { - "const": "draft_issue" - } - }, - "required": [ - "project", - "content_type", - "draft_title" - ] - } - ], "properties": { "campaign_id": { "description": "Campaign identifier to group related project items. Used to track items created by the same campaign or workflow run.", @@ -347,6 +318,10 @@ jobs: "type": "string" } }, + "required": [ + "project", + "content_type" + ], "type": "object" }, "name": "update_project" diff --git a/.github/workflows/playground-org-project-update-issue.lock.yml b/.github/workflows/playground-org-project-update-issue.lock.yml index 23c32598dd..4d7baf3ee2 100644 --- a/.github/workflows/playground-org-project-update-issue.lock.yml +++ b/.github/workflows/playground-org-project-update-issue.lock.yml @@ -253,35 +253,6 @@ jobs: "description": "Add or update items in GitHub Projects v2 boards. Can add issues/PRs to a project and update custom field values. Requires the project URL, content type (issue or pull_request), and content number. Use campaign_id to group related items.", "inputSchema": { "additionalProperties": false, - "oneOf": [ - { - "properties": { - "content_type": { - "enum": [ - "issue", - "pull_request" - ] - } - }, - "required": [ - "project", - "content_type", - "content_number" - ] - }, - { - "properties": { - "content_type": { - "const": "draft_issue" - } - }, - "required": [ - "project", - "content_type", - "draft_title" - ] - } - ], "properties": { "campaign_id": { "description": "Campaign identifier to group related project items. Used to track items created by the same campaign or workflow run.", @@ -322,6 +293,10 @@ jobs: "type": "string" } }, + "required": [ + "project", + "content_type" + ], "type": "object" }, "name": "update_project" diff --git a/pkg/workflow/js/safe_outputs_tools.json b/pkg/workflow/js/safe_outputs_tools.json index a14e27adfd..d0ec9ffcd6 100644 --- a/pkg/workflow/js/safe_outputs_tools.json +++ b/pkg/workflow/js/safe_outputs_tools.json @@ -578,6 +578,7 @@ "description": "Add or update items in GitHub Projects v2 boards. Can add issues/PRs to a project and update custom field values. Requires the project URL, content type (issue or pull_request), and content number. Use campaign_id to group related items.", "inputSchema": { "type": "object", + "required": ["project", "content_type"], "properties": { "project": { "type": "string", @@ -614,20 +615,6 @@ "description": "Whether to create the project if it doesn't exist. Defaults to false. Requires projects:write permission when true." } }, - "oneOf": [ - { - "required": ["project", "content_type", "content_number"], - "properties": { - "content_type": { "enum": ["issue", "pull_request"] } - } - }, - { - "required": ["project", "content_type", "draft_title"], - "properties": { - "content_type": { "const": "draft_issue" } - } - } - ], "additionalProperties": false } }