Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#9): add github project scanning support #47

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sacha-c
Copy link
Collaborator

@sacha-c sacha-c commented Jan 9, 2025

Adds support for github repository scanning

What was done:

  • refactor the repo package which only contained gitlab logic to:

  • repository: package which contains all repository-related services

    • gitlab: package which contains service to interact with gitlab
    • github: package which contains service to interact with github
    • provider: package which contains service which "provides" gitlab or github depending on a passed repository type
  • refactored uses of the gitlab service with the new "providerService" which goes to gitlab or github depending on the type of project

Still in TODO:

  • Support github issue creation

@sacha-c sacha-c requested a review from scastlara as a code owner January 9, 2025 09:32
scastlara
scastlara previously approved these changes Jan 9, 2025
Copy link
Collaborator

@scastlara scastlara left a comment

Choose a reason for hiding this comment

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

nice


s := githubService{client: &githubClient{client: client}, token: token}

return &s, nil
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why a pointer?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

copied from the gitlab implementation which can return an error. But here github doesn't return an error, so no need for a pointer!

Changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants