feat: Issue context para commits#40
Merged
Merged
Conversation
Implements automatic issue/ticket context integration for commit suggestions: - Add --issue flag to suggest command for manual issue specification - Auto-detect issues from branch names (patterns: #N, issue-N, N-desc, etc.) - Auto-detect issues from recent commit messages (fixes/closes keywords) - Integrate with VCS client (GitHub) to fetch issue details - Include issue context (title, description, labels) in AI prompts - Update AI prompts to enforce issue reference in commit titles - Add post-processing fallback to ensure issue references (#N) - Full i18n support (EN/ES) for all issue-related messages - Graceful degradation when issue fetch fails The feature works provider-agnostic (GitHub, GitLab, etc.) through the VCSClient interface and includes lazy initialization for optimal performance. 🤖 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
# Conflicts: # internal/domain/ports/vcs_client.go # internal/infrastructure/vcs/github/github_service.go # internal/infrastructure/vcs/github/github_service_test.go # internal/services/pull_request_service_test.go
thomas-vilte
added a commit
that referenced
this pull request
Dec 12, 2025
thomas-vilte
added a commit
that referenced
this pull request
Dec 12, 2025
thomas-vilte
added a commit
that referenced
this pull request
Dec 12, 2025
3 tasks
thomas-vilte
added a commit
that referenced
this pull request
Dec 18, 2025
thomas-vilte
added a commit
that referenced
this pull request
Dec 21, 2025
…tion Feat/39 issue context integration
thomas-vilte
added a commit
that referenced
this pull request
Dec 21, 2025
thomas-vilte
added a commit
that referenced
this pull request
Dec 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #39
1. Implementación de detección y contextualización automática de issues en commits:
--issue). Esto enriquece las sugerencias de commit generadas por la IA con información relevante del issue, mejorando la calidad y coherencia de los mensajes.CommitServicey se añade el flag--issueal comandosuggest.commit_summarizer_service) para incluir y validar referencias a issues en los títulos de los commits, añadiendo lógica de post-procesamiento para asegurar el formato(#N).models.Issuey se extiende la interfazports.VCSClientconGetIssue.2. Habilitación de la obtención de mensajes de commits recientes:
GitServicepara que elCommitServicepueda analizar los mensajes de commits anteriores. Esto es fundamental para la detección automática de issues basada en referencias en el historial de commits, apoyando directamente la funcionalidad principal de la Issue feat: Agregar contexto de problema/ticket a confirmaciones y solicitudes de incorporación de cambios #39.GetRecentCommitMessagesa la interfazports.GitServicey su implementación eninternal/infrastructure/git/git_service.go.internal/cli/command/handler/suggestions_test.go,internal/cli/command/release/mocks.go,internal/services/mocks.go) para soportar la nueva funcionalidad.3. Refactorización y unificación de nombres de módulos CLI y servicios:
prapull_requestsysuggestasuggests_commits, y los servicios de IA. Aunque es un cambio de limpieza, facilita la integración de nuevas funcionalidades como la Issue feat: Agregar contexto de problema/ticket a confirmaciones y solicitudes de incorporación de cambios #39 y mejora la mantenibilidad general.internal/cli/command/prapull_requests,internal/cli/command/suggestasuggests_commits,internal/infrastructure/ai/gemini/gemini_service.goacommit_summarizer_service.go, etc.).cmd/main.go.Test Plan