Skip to content

Conversation

@mrjf
Copy link
Contributor

@mrjf mrjf commented Dec 2, 2025

This pull request introduces a new "assign-to-user" safe output type to the workflow system, enabling agentic workflows to assign GitHub users to issues with configurable constraints. The implementation includes schema updates, configuration parsing, job creation, validation, and a new script to execute user assignments. The changes are grouped into schema/configuration, workflow logic, and tooling/script support.

I wasn't sure if we had some other way to do this already, or if we wanted to add this to update-issue, but I think it's a nice parallel to assign-to-agent to do it this way.

mrjf and others added 5 commits December 2, 2025 10:41
Adds a new safe output type `assign-to-user` that allows workflows to
assign GitHub users to existing issues. This complements the existing
`assign-to-agent` which only supports bot/copilot assignment.

Features:
- Assign any GitHub user to an issue by username
- Optional `allowed` list to restrict assignable users
- Cross-repo support via `target-repo`
- Configurable `max` limit for assignments

Usage:
```yaml
safe-outputs:
  assign-to-user:
    max: 3
    allowed: [user1, user2]
```

Agent output:
```json
{"type": "assign_to_user", "issue_number": 123, "username": "octocat"}
```

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Use SafeOutputTargetConfig embedded struct
- Use BuildMaxCountEnvVar and BuildAllowedListEnvVar helpers
- Use NewPermissionsContentsReadIssuesWrite for permissions
- Update JS to parse comma-separated allowed users list
- Use parseBaseSafeOutputConfig and ParseTargetConfig helpers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add go:embed directive and registry registration for assign_to_user.cjs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@pelikhan
Copy link
Contributor

pelikhan commented Dec 2, 2025

Create an agentic task and use the "add-safe-output-type" custom agent.

@mrjf
Copy link
Contributor Author

mrjf commented Dec 3, 2025

closed in favor of #5340

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.

3 participants