Skip to content

Remove PullRequestsRepository from module exports #5

Description

@Kuses129

Summary

PullRequestsModule currently exports both PullRequestsService and PullRequestsRepository. Other modules should interact with pull requests only through the service layer, not directly via the repository.

Change

In apps/api/src/modules/pull-requests/pull-requests.module.ts, remove PullRequestsRepository from the exports array so only PullRequestsService is exported.

This enforces proper layering — the service contains business logic and is the public API of the module, while the repository remains an internal implementation detail.

Steps

  1. Remove PullRequestsRepository from exports in PullRequestsModule
  2. Verify no other module injects PullRequestsRepository directly (fix any that do to use the service instead)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions