Merged
Conversation
Issue: #4 1. Created `backend` directory 2. Created `backend/api-service` and `backend/ai-service` 3. Updated the go.mod file 4. Run `go mod tidy`
since there is no parameter for setting up `working-dir` in `uses`, the manual approach was necessary
v2.0 accepts working-dir
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request restructures the backend/api-service directory to reflect the new directory layout and updates the corresponding import paths for consistency.
- Updated import paths in service, handler, route, and main files.
- Modified the working-directory in the CI workflow to match the new structure.
Reviewed Changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| backend/api-service/internal/services/analysis.go | Updated import path for models to use new directory. |
| backend/api-service/cmd/trustify/main.go | Updated import paths for routes and server config. |
| backend/api-service/api/routes/routes.go | Updated import path for handlers. |
| backend/api-service/api/handlers/handlers.go | Updated import paths for models and internal services. |
| .github/workflows/golangci-lint.yml | Set working-directory to point to the new api location. |
Files not reviewed (1)
- backend/api-service/go.mod: Language not supported
This was
linked to
issues
Apr 2, 2025
Closed
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.
What
This pull request involves significant changes to the structure and organization of the
backend/api-servicedirectory. The primary focus is on renaming and updating import paths to reflect the new directory structure.Directory restructuring and import path updates:
.github/workflows/golangci-lint.yml: Updated theworking-directorytobackend/api-service/to align with the new directory structure.backend/api-service/api/handlers/handlers.go: Updated import paths to match the new directory structure.backend/api-service/api/routes/routes.go: Updated import paths to match the new directory structure.backend/api-service/cmd/trustify/main.go: Updated import paths to match the new directory structure.backend/api-service/go.mod: Changed the module path togithub.com/MarcinZ20/Trustify/backend/api-serviceto reflect the new directory structure.These changes ensure that the codebase is organized in a more modular and maintainable way.