Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DeepSourceCorp/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: DeepSourceCorp/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: improvements
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 15 commits
  • 45 files changed
  • 2 contributors

Commits on Dec 23, 2025

  1. Upgrade Go to 1.25.3 and refresh 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>
    jai-deepsource committed Dec 23, 2025
    Configuration menu
    Copy the full SHA
    a299363 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2026

  1. fix: tests and DeepSource issues

    Signed-off-by: Sourya Vatsyayan <sourya@deepsource.io>
    sourya-deepsource committed Jan 3, 2026
    Configuration menu
    Copy the full SHA
    ca0fb3a View commit details
    Browse the repository at this point in the history
  2. fix: add tests for missing cases

    Signed-off-by: Sourya Vatsyayan <sourya@deepsource.io>
    sourya-deepsource committed Jan 3, 2026
    Configuration menu
    Copy the full SHA
    1aa98c9 View commit details
    Browse the repository at this point in the history
  3. chore: add uncovered test cases for config.WriteFile

    Signed-off-by: Sourya Vatsyayan <sourya@deepsource.io>
    sourya-deepsource committed Jan 3, 2026
    Configuration menu
    Copy the full SHA
    390b969 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2026

  1. fix: add server readiness check to prevent test race condition

    - wait for mock HTTP server to be ready before running tests
    - prevents flaky test failures due to connection refused errors
    jai-deepsource committed Jan 6, 2026
    Configuration menu
    Copy the full SHA
    dcecb59 View commit details
    Browse the repository at this point in the history
  2. fix: use underscore for unused mock function parameters

    - fixes RVV-B0012 DeepSource issues for unused parameters
    jai-deepsource committed Jan 6, 2026
    Configuration menu
    Copy the full SHA
    506f085 View commit details
    Browse the repository at this point in the history
  3. fix: increase mock server startup timeout

    - increases wait iterations from 50 to 200 for more reliability
    jai-deepsource committed Jan 6, 2026
    Configuration menu
    Copy the full SHA
    c16ebf8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1ce50fb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    de9f21c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    22b182a View commit details
    Browse the repository at this point in the history
  7. docs: update README with auth commands and usage examples

    - 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
    jai-deepsource committed Jan 6, 2026
    Configuration menu
    Copy the full SHA
    5d86ef7 View commit details
    Browse the repository at this point in the history
  8. refactor: add function variables to auth commands for testability

    - login: extract getConfig, confirmFromUser, selectFromOptions, getSingleLineInput
    - logout: extract getConfig, confirmFromUser
    - refresh: extract getConfig, newDeepsource
    - status: extract getConfig
    
    Enables mocking of dependencies in unit tests
    jai-deepsource committed Jan 6, 2026
    Configuration menu
    Copy the full SHA
    a0e2ba8 View commit details
    Browse the repository at this point in the history
  9. refactor: extract surveyAskOne function variable for testing

    Enables mocking of survey.AskOne in unit tests for prompt utilities
    jai-deepsource committed Jan 6, 2026
    Configuration menu
    Copy the full SHA
    31284e3 View commit details
    Browse the repository at this point in the history
  10. test: add unit tests for auth, config, report, and utils packages

    - 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
    jai-deepsource committed Jan 6, 2026
    Configuration menu
    Copy the full SHA
    e53a145 View commit details
    Browse the repository at this point in the history
  11. Refactor code quality and improve test patterns

    - 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
    jai-deepsource committed Jan 6, 2026
    Configuration menu
    Copy the full SHA
    83025f0 View commit details
    Browse the repository at this point in the history
Loading