-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
Summary
Add a new output type to the compiler that creates an issue (or pull request) comment with the agent output. The output type should be configurable in the front matter just like the existing issue
output type but does not take any options.
Requirements
- The front matter of a workflow should allow specifying:
output: comment: {}
- When
output.comment
is set, the compiler must generate a new job (e.g.,create_issue_comment
) that posts the agent output as a comment on the current issue or pull request. - If the workflow is not triggered by an issue or pull request event, this job must be skipped.
- The job should:
- Depend on the main agent execution job
- Use the agent output (as collected in the main job) as the content of the comment
- Use appropriate permissions to post comments (
issues: write
,pull-requests: write
)
Implementation Notes
- Follow the conventions in
compiler.go
for output jobs likecreate_output_issue
. - Add appropriate documentation and front matter schema updates.
- Add tests to cover this output type: ensure a comment is posted in issue/PR contexts, and skipped otherwise.
Related Code
Acceptance Criteria
- Front matter supports
output.comment
. - Compiler generates a
create_issue_comment
job with correct dependencies and permissions. - Job posts agent output as a comment on the current issue or PR.
- Job is skipped if not running in issue or PR context.
- Unit/integration tests cover the new output type.
Assigned to: Copilot agent
Copilot
Metadata
Metadata
Assignees
Labels
No labels