Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 1, 2026

Move create-project from the separate project handler manager step to the unified handler, matching the existing pattern for update-project and create-project-status-update.

Changes

Registry migration (compiler_safe_outputs_config.go):

  • Moved create_project builder from projectHandlerRegistryhandlerRegistry
  • Only copy_project remains in the project handler manager

Compiler logic (compiler_safe_outputs_job.go, compiler_safe_outputs_steps.go):

  • Updated hasProjectHandlerManagerTypes to only check for copy_project
  • Fixed GH_AW_TEMPORARY_PROJECT_MAP reference to only be set when copy_project is configured
  • Moved permissions from project handler section to unified handler section

JavaScript handlers:

  • Removed create_project from safe_output_project_handler_manager.cjs handler map
  • No changes to safe_output_unified_handler_manager.cjs (already supported)

Tests:

  • Updated tests expecting project handler step to use copy_project instead

Impact

Workflows using only create-project (or update-project/create-project-status-update) no longer generate a separate project handler manager step. The unified handler processes all three project operations using the standard GH_AW_GITHUB_TOKEN, with project-specific token override via handler config when needed.

Before: Workflows with create-project had two steps (project handler + unified handler)
After: Single unified handler step unless copy-project is also configured

Original prompt

Refactor create-project to be handled in the JavaScript safe outout unified handler instead of a separate project step.

Similar to update-project.


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

Copilot AI and others added 2 commits February 1, 2026 12:45
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Move create-project from projectHandlerRegistry to handlerRegistry
- Update unified handler manager to handle create-project
- Update project handler manager to remove create-project
- Update compiler logic to exclude create-project from project handler check
- Update permissions to include create-project in unified handler section
- Update tests to reflect create-project now in unified handler
- Verified create-project config correctly added to handler config JSON

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
// Note: create_project, update_project and create_project_status_update are handled by the unified handler,
// not the separate project handler manager, so they are included in this registry.
"create_project": func(cfg *SafeOutputsConfig) map[string]any {
if cfg.CreateProjects == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot use singular to match safe output name

Copilot AI and others added 2 commits February 1, 2026 12:57
Updated TestHandlerManagerOrderWithProjects to use copy_project instead of create_project since create-project is now handled by the unified handler, not the project handler manager.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Updated buildHandlerManagerStep to only reference process_project_safe_outputs.outputs.temporary_project_map when copy_project is configured, since create_project, update_project, and create_project_status_update are now handled by the unified handler and don't need the project handler's outputs.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor create-project to use unified handler Consolidate create-project into unified safe output handler Feb 1, 2026
@pelikhan pelikhan marked this pull request as ready for review February 1, 2026 13:03
Copilot AI requested a review from pelikhan February 1, 2026 13:03
@pelikhan pelikhan added the smoke label Feb 1, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing...

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

Agent Container Tool Check

Tool Status Version
bash 5.2.21
sh available
git 2.52.0
jq 1.7
yq v4.50.1
curl 8.5.0
gh 2.86.0
node v24.13.0
python3 3.13.11
go go1.24.12
java not found
dotnet not found

Result: 10/12 tools available

FAIL - 2 tool(s) missing (java, dotnet)


Summary:

  • ✅ Shell tools (bash, sh)
  • ✅ Version control (git)
  • ✅ JSON/YAML processing (jq, yq)
  • ✅ HTTP tools (curl)
  • ✅ GitHub CLI (gh)
  • ✅ Programming runtimes (node, python3, go)
  • ❌ Java runtime not available
  • ❌ .NET runtime not available

AI generated by Agent Container Smoke Test

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

Smoke Test: Claude ✅

PR Titles (merged):

Test Results:

  • ✅ GitHub MCP
  • ✅ Safe Inputs GH CLI
  • ✅ Serena MCP
  • ✅ Make Build
  • ✅ Playwright
  • ✅ Tavily Web Search
  • ✅ File Writing
  • ✅ Bash Tool
  • ✅ Discussion Interaction

Overall: PASS

AI generated by Smoke Claude

@pelikhan pelikhan merged commit 9bafdee into main Feb 1, 2026
158 of 159 checks passed
@pelikhan pelikhan deleted the copilot/refactor-create-project-handler branch February 1, 2026 13:08
@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

🧪 Smoke Test Results - Run 21563357087

PRs tested: #13097, #13094
✅ GitHub MCP
✅ Safe Inputs GH CLI
✅ Serena MCP
✅ Playwright
✅ File Writing
✅ Bash Tool
✅ Discussion Interaction
✅ Build gh-aw
❌ Project Operations
⚠️ Project Scoping

Overall: PARTIAL PASS ⚠️

@pelikhan

AI generated by Smoke Copilot

Copilot stopped work on behalf of pelikhan due to an error February 1, 2026 13:09
@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

PRs: Consolidate create-project into unified safe output handler | Align Go frontmatter hash with JavaScript text-based implementation
GitHub MCP merged PRs ✅
safeinputs-gh pr list ✅
Serena activate ✅
Playwright GitHub title ✅
Tavily search ✅
File write+cat ✅
Discussion query+comment ✅
Build make build ✅
Overall: PASS

AI generated by Smoke Codex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants