You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Limit suggested labels to maximum of 3 (configurable via max_labels,
default -1 for unlimited)
- Only suggest "documentation" label when docs/ files are modified
- Only suggest "e2e" label when test/ files are modified
- Add validation logic to enforce these restrictions
- Add "hack" to excluded labels list to avoid self-labeling
- Update pipeline template to pass MAX_LABELS environment variable
- Improve label limit logic to support unlimited labeling when max_labels <= 0
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
IMPORTANT: You can ONLY suggest labels from this list of available labels in the repository:
132
132
{labels_text}
133
133
134
-
Based on the PR title, description, files changed, and commit messages, suggest 2-4 relevant labels from the available labels list above. Use the label descriptions to understand their intended purpose.
134
+
Based on the PR title, description, files changed, and commit messages, suggest up to 3 relevant labels from the available labels list above. Use the label descriptions to understand their intended purpose.
135
+
136
+
IMPORTANT RESTRICTIONS:
137
+
- Only suggest "documentation" label if files in the docs/ directory are modified
138
+
- Only suggest "e2e" label if files in the test/ directory are modified for e2e tests
139
+
- Only suggest provider labels ("github", "gitlab", "bitbucket", "gitea") if files in the pkg/provider/ directory are modified
140
+
- Provider labels should match the specific provider subdirectory modified (e.g., "github" only if pkg/provider/github/ files are changed)
141
+
- Maximum 3 labels total
135
142
136
143
Respond with only a JSON array of label names that exist in the available labels list, like: ["enhancement", "backend"]
0 commit comments