Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 1, 2026

The update_project handler's JavaScript implementation supports creating draft issues in Projects v2 via content_type: "draft_issue", but the schema and Go validation were missing this option.

Changes

  • schemas/agent-output.json: Added "draft_issue" to content_type enum and added draft_title/draft_body properties
  • pkg/workflow/safe_output_validation_config.go: Added "draft_issue" enum value and validation rules for draft_title (max 256) and draft_body (max 65000)

Usage

{
  "type": "update_project",
  "project": "https://github.com/orgs/myorg/projects/42",
  "content_type": "draft_issue",
  "draft_title": "Draft Item Title",
  "draft_body": "Optional markdown content",
  "fields": {"Status": "Todo", "Priority": "High"}
}

The JavaScript implementation in update_project.cjs already handles this fully (including 6 test cases). This change completes the type system coverage.

Original prompt

Update your project handler/action to support content_type "draft_issue".


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 1, 2026 13:42
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Update project handler to support content_type draft_issue Add draft_issue content_type support to update_project schema and validation Feb 1, 2026
Copilot AI requested a review from mnkiefer February 1, 2026 13:54
@mnkiefer mnkiefer marked this pull request as ready for review February 1, 2026 13:56
@mnkiefer mnkiefer merged commit d0405bb into main Feb 1, 2026
121 checks passed
@mnkiefer mnkiefer deleted the copilot/update-project-handler-draft-issue branch February 1, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants