-
Notifications
You must be signed in to change notification settings - Fork 32
Add assign-to-user safe output type #5340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add JSON schema definition for assign-to-user in main_workflow_schema.json - Add AssignToUserConfig struct and parsing logic - Create pkg/workflow/assign_to_user.go for job builder - Create pkg/workflow/js/assign_to_user.cjs JavaScript implementation - Add assign_to_user tool to safe_outputs_tools.json - Register script and embed directive in scripts.go and js.go - Add to generateFilteredToolsJSON(), generateSafeOutputsConfig(), HasSafeOutputsEnabled() - Add to compiler_jobs.go for job building - Add to safe_output_validation_config.go for validation - Update tests in safe_outputs_tools_test.go and safe_output_validation_config_test.go - Update documentation in docs/src/content/docs/reference/safe-outputs.md Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Change from 0 to 1 to match documented default behavior. Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Reduce code duplication and improve consistency with other similar parsing functions. Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
pelikhan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot add a test agentic workflow (with the other test files) that uses this safe output type.
This adds a test agentic workflow that exercises the new assign-to-user safe output type. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
🔮 The ancient spirits stir... Smoke Codex awakens to divine this pull request... |
|
💥 WHOOSH! Smoke Claude springs into action on this pull request! [Panel 1 begins...] |
|
🤖 SYSTEM_INIT: Smoke Copilot No Firewall ACTIVATED. PROCESSING pull request. ALL SUBSYSTEMS ONLINE. |
|
📰 BREAKING: Smoke Copilot Playwright is now investigating this pull request. Sources say the story is developing... |
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
Smoke Test ResultsLast 2 Merged PRs:
Test Results:
Status: PASS
|
Smoke Test: Claude Engine Validation (Run 19878593872)Recent PRs:
Test Results: Status: PASS
|
|
Convert embedded custom agents to prompt file format
|
|
@copilot update dev.md to assign an issue to mrjf on workflow dispatch |
Changes the dev workflow from using assign-to-agent (Copilot) to assign-to-user (mrjf) for issue assignment. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
✅ Dev Hawk Report - SuccessWorkflow Run: #3030
SummaryThe Dev workflow completed successfully! 🎉 This run validated the changes from commit 🦅 Automated report by Dev Hawk
|
|
The assign to user safe output job was not invoked in this run https://github.com/githubnext/gh-aw/actions/runs/19882156439/job/56982274706#step:32:1. Investigate why. |
|
@copilot execute comment above |
The assign_to_user job requires `target: "*"` when triggered via workflow_dispatch since there's no issue context. Without this, the job condition included `(github.event.issue.number)` which evaluates to falsy on workflow_dispatch events. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
The Fixed by adding Fixed in c28b405. |
|
@copilot handle the case where target="*" in the javascript. See failed job at https://github.com/githubnext/gh-aw/actions/runs/19882573193/job/56983535857 |
|
|
@copilot update dev.md to pick an issue if none is specified in context. |
When target="*", the resolveTarget function now checks for item.issue_number in addition to item.item_number and item.pull_request_number. This fixes assign_to_user failing when the agent output uses the standard issue_number field. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
The Fixed by adding Fixed in b90b51a. |
Changed from searching for specific "[deps]" issues to searching for any open issue that isn't already assigned to mrjf. This makes the workflow more general and useful for testing assign-to-user. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
✅ Dev Hawk Report - SuccessWorkflow Run: #3032
The Dev workflow completed successfully! 🎉 SummaryThe workflow executed the following commit:
All checks passed without issues.
|
assign-to-usersafe output type (analogous toassign-to-agent)pkg/parser/schemas/main_workflow_schema.jsonAssignToUserConfiginpkg/workflow/assign_to_user.gopkg/workflow/safe_outputs.gopkg/workflow/assign_to_user.gofor job builderpkg/workflow/js/assign_to_user.cjsJavaScript implementationsafe_outputs_tools.jsontool definitionpkg/workflow/scripts.gopkg/workflow/scripts.gogenerateFilteredToolsJSON()andgenerateSafeOutputsConfig()insafe_outputs.goHasSafeOutputsEnabled()checkcompiler_jobs.gofor job buildingsafe_output_validation_config.gofor validationdocs/src/content/docs/reference/safe-outputs.mdmake agent-finishfor final validationpkg/cli/workflows/test-assign-to-user.mddev.mdto use assign-to-user for mrjftarget: "*")issue_numberfield fortarget="*"Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Changeset
assign-to-usersafe output type with schema, Go structs, job builder, JavaScript runner script, tests, and documentation.Smoke Test Summary