Skip to content

Renovate bot feature clean#1847

Open
5byuri wants to merge 2 commits intomainfrom
renovate-bot-feature-clean
Open

Renovate bot feature clean#1847
5byuri wants to merge 2 commits intomainfrom
renovate-bot-feature-clean

Conversation

@5byuri
Copy link
Copy Markdown
Member

@5byuri 5byuri commented Apr 3, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 3, 2026 07:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a small public API surface intended to support Renovate by returning a “recommended” fixed version for a given dependency, backed by stored direct_dependency_fixed_version data on dependency vulnerabilities.

Changes:

  • Added a new /api/v1/renovate/recommendation/ endpoint returning a dtos.Recommendation.
  • Extended DependencyVulnRepository and DependencyVulnService with a lookup method for a package’s fixed version and implemented it in the repository/service layers.
  • Added a repository query that searches dependency_vulns.vulnerability_path JSONB to find a recent fixed version.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
shared/common_interfaces.go Extends repository/service interfaces with a new recommendation lookup method.
services/dependency_vuln_service.go Implements the new service method by delegating to the repository.
router/apiv1_router.go Registers a new Renovate recommendation route under /api/v1.
dtos/recommendation_dto.go Adds the response DTO returned by the new endpoint.
database/repositories/dependency_vuln_repository.go Implements the DB lookup for direct_dependency_fixed_version by package name.
controllers/dependency_vuln_controller.go Adds the new HTTP handler and extracts a version from a PURL when needed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants