8000 CLI: only support --context-repo on dotcom accounts by olafurpg · Pull Request #4887 · sourcegraph/cody · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CLI: only support --context-repo on dotcom accounts #4887

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

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

olafurpg
Copy link
Member

Fixes CODY-2742

Previously, the CLI tried to support --context-repo on dotcom accounts even if remote repo context doesn't work on dotcom. This PR changes the behavior to report an error message if the user tries to pass --context-repo with a dotcom account.

Test plan

Manually tested with

❯ pnpm agent chat --context-repo github.com/sourcegraph/cody -m 'what is the agent?'

> @sourcegraph/cody@ agent /Users/olafurpg/dev/sourcegraph/cody
> pnpm -C agent agent "chat" "--context-repo" "github.com/sourcegraph/cody" "-m" "what is the agent?"


> @sourcegraph/cody@0.2.0 agent /Users/olafurpg/dev/sourcegraph/cody/agent
> pnpm run build && node --enable-source-maps dist/index.js "chat" "--context-repo" "github.com/sourcegraph/cody" "-m" "what is the agent?"


> @sourcegraph/cody@0.2.0 build /Users/olafurpg/dev/sourcegraph/cody/agent
> pnpm run -s build:root && pnpm run -s build:agent

✖ The --context-repo option is only available for Sourcegraph Enterprise users. Please sign into an Enterprise instance with the command: cody auth logout && cody auth login --web

Fixes CODY-2742

Previously, the CLI tried to support `--context-repo` on dotcom accounts
even if remote repo context doesn't work on dotcom. This PR changes the
behavior to report an error message if the user tries to pass
--context-repo with a dotcom account.
@olafurpg olafurpg merged commit 0655561 into main Jul 16, 2024
19 checks passed
@olafurpg olafurpg deleted the olafurpg-cody-2742--context-repo-is-not-working branch July 16, 2024 12:58
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.

2 participants
0