-
Notifications
You must be signed in to change notification settings - Fork 4
Add output.comment type for posting agent output as issue/PR comments with multiple output support #130
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
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@copilot update test-claude.md to use |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Updated test-claude.md to use Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
@@ -16,9 +16,7 @@ permissions: | |||
pull-requests: write | |||
actions: read | |||
output: | |||
issue: |
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 keep the issue section, output should support multiple options
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.
Updated test-claude.md to keep both issue and comment output options as requested. The workflow now supports multiple output types simultaneously, demonstrating the full functionality. Commit: fea0dd3
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This PR implements the
output.comment
output type that creates issue or pull request comments from agent output, following the same patterns as the existingoutput.issue
functionality. Additionally, it enables workflows to support multiple output types simultaneously.What's New
Users can now configure workflows to automatically post agent output as comments on issues or pull requests, and can combine multiple output types in a single workflow:
Key Features
github.event.issue.number
orgithub.event.pull_request.number
is present, gracefully skipping for other event typesissues: write
andpull-requests: write
permissions, keeping the main job minimalImplementation Details
create_issue_comment
with 10-minute timeoutcomment_id
andcomment_url
for downstream jobsoutput.comment
configurationExample Generated Workflow
The compiler generates a conditional job that:
github.rest.issues.createComment()
This maintains the same separation of concerns as
output.issue
where the main job doesn't need write permissions, improving security and following the principle of least privilege.The test workflow
test-claude.md
has been updated to demonstrate this functionality by both creating issues AND posting analysis results as PR comments, showcasing the multiple output support capability.Fixes #129.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.