Skip to content

Comments

Remove unused parameters from repository functions#207

Open
rdowavic wants to merge 1 commit intoamitsaha:masterfrom
rdowavic:feat/remove-unused-params-from-repo-functions
Open

Remove unused parameters from repository functions#207
rdowavic wants to merge 1 commit intoamitsaha:masterfrom
rdowavic:feat/remove-unused-params-from-repo-functions

Conversation

@rdowavic
Copy link

Summary

  • Each get*Repositories function was receiving all 8 parameters from getRepositories, even though most were unused (e.g., getGitlabRepositories received githubRepoType, githubNamespaceWhitelist, ignoreFork, and forgejoRepoType — none of which it uses)
  • Now each function only accepts the parameters it actually needs
  • Functions use typed client pointers (e.g., *github.Client) instead of interface{}, with type assertions moved to the getRepositories dispatcher

Contributes to #67

Test plan

  • go build ./... compiles
  • go test ./... passes
  • No behavior changes — purely a signature cleanup refactor

Each get*Repositories function was receiving all 8 parameters from
getRepositories, even though most were unused. For example,
getGitlabRepositories received githubRepoType, githubNamespaceWhitelist,
ignoreFork, and forgejoRepoType — none of which it uses.

Now each function only accepts what it needs and uses typed client
pointers instead of interface{}, with type assertions and the nil
client check moved to the getRepositories dispatcher.
@rdowavic rdowavic force-pushed the feat/remove-unused-params-from-repo-functions branch from 7aeefa5 to 86b0ca5 Compare February 24, 2026 05:29
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.

1 participant