Skip to content

Commit d3e1e9a

Browse files
committed
feat: Enhance VCS config guidance & add AI 'performance' label
1 parent bea5e11 commit d3e1e9a

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

internal/i18n/locales/active.en.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ invalid_repo_format = "Invalid repository format"
209209
pr_summary_error = "Error generating PR summary"
210210
no_repo_configured = "No repository configured. Use --repo or configure an active VCS provider"
211211
vcs_provider_not_configured = "VCS provider '{{.Provider}}' is not configured"
212+
vcs_provider_auto_detected_not_configured = "VCS provider '%s' auto-detected but not configured. Use 'matecommit config set-vcs --provider %s --token <token>' to configure it"
212213

213214
[label]
214215
feature = "New features"

internal/i18n/locales/active.es.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ invalid_repo_format = "Formato de repositorio inválido"
217217
pr_summary_error = "Error generando el resumen del PR"
218218
no_repo_configured = "No se ha configurado ningún repositorio. Usa --repo o configura un proveedor VCS activo"
219219
vcs_provider_not_configured = "El proveedor VCS '{{.Provider}}' no está configurado"
220+
vcs_provider_auto_detected_not_configured = "Proveedor de VCS '%s' detectado automáticamente pero no configurado. Use 'matecommit config set-vcs --provider %s --token <token>' para configurarlo"
220221

221222
[label]
222223
feature = "Nuevas funcionalidades"

internal/infrastructure/ai/gemini/gemini_pr_summarizer_service.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ type GeminiPRSummarizer struct {
2323
}
2424

2525
var validLabels = map[string]bool{
26-
"feature": true,
27-
"fix": true,
28-
"refactor": true,
29-
"docs": true,
30-
"infra": true,
31-
"test": true,
26+
"feature": true,
27+
"fix": true,
28+
"refactor": true,
29+
"docs": true,
30+
"infra": true,
31+
"test": true,
32+
"performance": true,
3233
}
3334

3435
func NewGeminiPRSummarizer(ctx context.Context, cfg *config.Config, trans *i18n.Translations) (*GeminiPRSummarizer, error) {

0 commit comments

Comments
 (0)