Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/ISSUE_TEMPLATE/custom.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
body:
- attributes:
value: Describí el tema que querés reportar o discutir.
value: Describe the topic you want to report or discuss.
type: markdown
- attributes:
description: Contame de qué se trata
label: Descripción
placeholder: Quisiera proponer/reportar/discutir...
description: Tell me what it's about
label: Description
placeholder: I would like to propose/report/discuss...
id: description
type: textarea
validations:
required: true
- attributes:
description: Cualquier detalle extra que sea relevante
label: Información adicional
description: Any additional details that are relevant
label: Additional information
id: additional
type: textarea
description: Crea una issue personalizada
description: Create a custom issue
labels: []
name: Issue Personalizada
name: Custom Issue
title: '[ISSUE] '
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/dependency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
body:
- attributes:
label: Package Name
id: package
type: input
validations:
required: true
- attributes:
description: Security fix, new features, etc.
label: Reason for update
id: reason
type: textarea
description: Update a project dependency
labels:
- dependencies
name: Dependency Update
title: '[DEPENDENCY] '
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
body:
- attributes:
description: What needs to be documented or improved?
label: Description
id: description
type: textarea
validations:
required: true
- attributes:
description: Where should this check go?
label: Relevant files/sections
id: location
type: textarea
description: Improvements or additions to documentation
labels:
- documentation
name: Documentation
title: '[DOCS] '
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/performance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
body:
- attributes:
value: Thanks for helping us make things faster! Please describe the performance issue in detail.
type: markdown
- attributes:
description: What is slow or inefficient?
label: Description
placeholder: The dashboard takes 5 seconds to load...
id: description
type: textarea
validations:
required: true
- attributes:
description: e.g., Response time, CPU usage, Memory
label: Metric (optional)
placeholder: 500ms -> 2s
id: metric
type: input
- attributes:
description: How can we observe this?
label: Steps to reproduce
id: repro
type: textarea
description: Report a performance issue or inefficiency
labels:
- performance
- optimization
name: Performance Issue
title: '[PERF] '
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
body:
- attributes:
description: What would you like to know?
label: Question
id: question
type: textarea
validations:
required: true
description: Ask a question about the project
labels:
- question
name: Question
title: '[QUESTION] '
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
body:
- attributes:
value: '**IMPORTANT:** Please do not disclose security vulnerabilities publicly until they have been addressed.'
type: markdown
- attributes:
description: Describe the security issue.
label: Vulnerability Description
id: description
type: textarea
validations:
required: true
- attributes:
description: What is the potential impact of this vulnerability?
label: Impact
id: impact
type: textarea
description: Report a security vulnerability
labels:
- security
- critical
name: Security Vulnerability
title: '[SECURITY] '
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/tech_debt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
body:
- attributes:
description: What code needs refactoring?
label: Description
id: description
type: textarea
validations:
required: true
- attributes:
description: Why should we do this? (e.g. readability, maintainability)
label: Reason
id: reason
type: textarea
description: Propose a refactoring or technical improvement
labels:
- refactor
- tech-debt
name: Tech Debt / Refactor
title: '[REFACTOR] '
9 changes: 5 additions & 4 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,15 @@ func initializeApp() (*cli.Command, error) {
services.WithConfig(cfgApp),
)

templateService := services.NewIssueTemplateService(
services.WithTemplateConfig(cfgApp),
)

prService := services.NewPRService(
services.WithPRVCSClient(vcsClient),
services.WithPRAIProvider(prAI),
services.WithPRConfig(cfgApp),
)

templateService := services.NewIssueTemplateService(
services.WithTemplateConfig(cfgApp),
services.WithPRTemplateService(templateService),
)

issueService := services.NewIssueGeneratorService(
Expand Down
2 changes: 1 addition & 1 deletion internal/ai/cost_wrapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"testing"
"time"

"github.com/stretchr/testify/mock"
"github.com/thomas-vilte/matecommit/internal/models"
"github.com/thomas-vilte/matecommit/internal/services/cost"
"github.com/stretchr/testify/mock"
)

type mockProvider struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/ai/gemini/commit_summarizer_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os"
"testing"

"github.com/stretchr/testify/assert"
"github.com/thomas-vilte/matecommit/internal/config"
"github.com/thomas-vilte/matecommit/internal/models"
"github.com/stretchr/testify/assert"
"google.golang.org/genai"
)

Expand Down Expand Up @@ -207,7 +207,7 @@ func TestGeminiCommitSummarizer(t *testing.T) {
// assert
assert.Contains(t, prompt, "commit", "El prompt debería contener 'commit'")
assert.Contains(t, prompt, "Archivos Modificados", "El prompt debería contener 'Archivos modificados'")
assert.Contains(t, prompt, "explicación", "El prompt debería contener 'Explicación'")
assert.Contains(t, prompt, "Explicación", "El prompt debería contener 'Explicación'")
assert.Contains(t, prompt, "feat", "El prompt debería contener tipos de commit")
assert.Contains(t, prompt, "fix", "El prompt debería contener tipos de commit")
assert.Contains(t, prompt, "refactor", "El prompt debería contener tipos de commit")
Expand Down
Loading
Loading