-
Notifications
You must be signed in to change notification settings - Fork 4
output labels #184
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
output labels #184
Conversation
…abels output type (#6) * Initial plan * Implement label output type for agentic workflows - Add LabelConfig struct with mandatory allowed field - Create add_labels.cjs JavaScript implementation - Update compiler parsing and job building logic - Add comprehensive tests for new functionality - Update schema to include labels output type - Add documentation for label addition feature The new label output type supports: - Mandatory allow-list enforcement - Strict addition-only operations (no removal) - Line-by-line parsing with safety checks - Subset validation of requested vs allowed labels - Clear error messages for validation failures Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Add max-count option to labels output and move label code to separate file Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Rename Label field to Labels to match YAML configuration Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Introduced `add_labels` job to add labels to issues and pull requests based on agent output. - Updated permissions and environment variables for label handling. - Enhanced error handling for context detection and label validation. - Updated documentation to specify allowed labels.
@@ -260,6 +260,9 @@ output: | |||
title-prefix: "[ai] " # Optional: prefix for PR titles | |||
labels: [automation, ai-agent] # Optional: labels to attach to PRs | |||
draft: true # Optional: create as draft PR (defaults to true) | |||
labels: | |||
allowed: [triage, bug, enhancement] # Mandatory: allowed labels for addition |
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.
It feels like if this allowed:
is not specified, then the agentic part should be able to leave the chosen labels as data.
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.
This applies to all the labels:
features.
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.
I'll defer this to another PR.
…s and GitHub API integration
Support for output that adds labels to current issue/pull_request