Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 6, 2026

The copy-project safe output required agents to provide sourceProject and owner on every invocation, even when repeatedly copying from the same template project.

Configuration

  • Added optional source-project and target-owner fields to copy-project frontmatter config
  • Defaults are passed as environment variables (GH_AW_COPY_PROJECT_SOURCE, GH_AW_COPY_PROJECT_TARGET_OWNER)
  • Agent can override defaults by providing explicit values

Schema & Parser

  • Extended CopyProjectsConfig with SourceProject and TargetOwner fields
  • Added pattern validation for source-project (GitHub project URL format)
  • Updated MCP tool schema: sourceProject and owner now optional when defaults configured

Runtime

  • JavaScript copyProject() reads env vars as fallbacks before requiring fields
  • Error messages updated to mention configuration option

Example

safe-outputs:
  copy-project:
    source-project: "https://github.com/orgs/myorg/projects/42"
    target-owner: "myorg"
// Agent call simplified
copy_project({ title: "Q1 Sprint" });

// Still allows override
copy_project({ 
  sourceProject: "https://github.com/orgs/other/projects/5",
  title: "Different Sprint" 
});

Fully backward compatible - existing workflows without configuration continue to work unchanged.

Original prompt

Safe output copy-project should get option for source and target?


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add source and target options for copy-project Add source-project and target-owner configuration for copy-project safe output Jan 6, 2026
Copilot AI requested a review from mnkiefer January 6, 2026 14:09
@mnkiefer mnkiefer marked this pull request as ready for review January 6, 2026 14:12
@mnkiefer mnkiefer merged commit 2ab98b9 into main Jan 6, 2026
51 checks passed
@mnkiefer mnkiefer deleted the copilot/add-source-target-options branch January 6, 2026 14:13
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