Skip to content

Conversation

@jai-deepsource
Copy link
Contributor

  • Bump Go version in CI, Makefile, and go.mod
  • Replace deprecated ioutil and strings.Title usages
  • Update GitHub Actions and all module dependencies

- Bump Go version in CI, Makefile, and go.mod
- Replace deprecated ioutil and strings.Title usages
- Update GitHub Actions and all module dependencies

Signed-off-by: Jai Pradeesh <jai@deepsource.io>
sourya-deepsource and others added 14 commits January 3, 2026 16:30
Signed-off-by: Sourya Vatsyayan <sourya@deepsource.io>
Signed-off-by: Sourya Vatsyayan <sourya@deepsource.io>
Signed-off-by: Sourya Vatsyayan <sourya@deepsource.io>
- wait for mock HTTP server to be ready before running tests
- prevents flaky test failures due to connection refused errors
- fixes RVV-B0012 DeepSource issues for unused parameters
- increases wait iterations from 50 to 200 for more reliability
- Add authentication section with login examples (browser, token, enterprise)
- Document OIDC authentication for GitHub Actions
- Expand command reference with subcommand details
- Add auth, config, issues, and repo subcommand descriptions
- login: extract getConfig, confirmFromUser, selectFromOptions, getSingleLineInput
- logout: extract getConfig, confirmFromUser
- refresh: extract getConfig, newDeepsource
- status: extract getConfig

Enables mocking of dependencies in unit tests
Enables mocking of survey.AskOne in unit tests for prompt utilities
- auth/login: test command creation, interactive login flows, re-auth prompts
- auth/logout: test config errors, not-logged-in state, user cancellation
- auth/refresh: test config errors, client creation, token refresh
- auth/status: test config errors, not-logged-in, valid/expired tokens
- config/generate: test config generation with analyzers, transformers, patterns
- report: test sanitize, validateKey, git commit detection, makeQuery
- utils/prompt: test ConfirmFromUser, SelectFromOptions, GetSingleLineInput
- utils/cmd_validator: test ExactArgs, MaxNArgs, NoArgs validators
- Use underscore prefix for unused cobra command parameters
- Refactor logout to use struct fields instead of package-level vars
- Fix mutex double-unlock issues in status_test.go
- Replace deprecated ioutil.ReadFile with os.ReadFile
- Convert value receivers to pointer receivers where appropriate
- Extract setupGitRepo helper and use table-driven tests
- Improve error handling with io.ReadAll and json.NewEncoder
- Add configFilePermissions constant and clean up config.go
- Use DialTimeout for server readiness checks
- Fix test loop variable capture issues
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.

3 participants