Skip to content

chore(sdk): deprecate every sandbox git method - #2177

Merged
mishushakov merged 1 commit into
mainfrom
devin/1795622525-deprecate-git-methods
Nov 25, 2026
Merged

mishushakov merged 1 commit into
mainfrom
devin/1795622525-deprecate-git-methods

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

#1774 deprecated Sandbox.git, the Git class and its types, but not the individual methods. This adds the same deprecation notice to all 19 public Git methods (clone, init, remoteAdd, remoteGet, status, branches, createBranch, checkoutBranch, deleteBranch, add, commit, reset, restore, push, pull, setConfig, getConfig, dangerouslyAuthenticate, configureUser, and their snake_case Python equivalents):

  • JS: @deprecated JSDoc
  • Python sync + async: :deprecated: docstring line (same convention as the rest of the SDK)

Annotations only, no behavior change; patch changeset.

Migration:

// before
await sandbox.git.clone('https://github.com/e2b-dev/E2B', { path: '/home/user/E2B' })
// after
await sandbox.commands.run('git clone https://github.com/e2b-dev/E2B /home/user/E2B')

Link to Devin session: https://app.devin.ai/sessions/c1ed439c560c461db1fbaa3669a2c2d7
Open in Devin Desktop: https://app.devin.ai/desktop/session/c1ed439c560c461db1fbaa3669a2c2d7?variant=devin
Requested by: @mishushakov


🟢 Devin Review found nothing to fix · View findings

Devin Review

@cla-bot cla-bot Bot added the cla-signed label Nov 25, 2026
@changeset-bot

changeset-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2de9c7a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
e2b Patch
@e2b/python-sdk Patch
@e2b/code-interpreter-python Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

TASTE.md review (posted as a PR comment because the GitHub reviews API returned HTTP 500 twice for this PR)

TASTE.md review: complies, 0 violations. Checked T-1/T-2 (all 19 methods deprecated in JS, sync and async Python), T-66 (@deprecated / :deprecated: with migration path and removal horizon, same wording as #1774), T-65/T-67 (annotation-only, nothing removed), T-69–T-71 (docstring conventions).

Written by Devin

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Package Artifacts

Built from 2f0a28a. Download artifacts from this workflow run.

JS SDK ([email protected], with @e2b/[email protected]):

npm install ./e2b-dockerfile-utils-0.1.3-devin-1795622525-deprecate-git-methods.0.tgz ./e2b-2.64.1-devin-1795622525-deprecate-git-methods.0.tgz

CLI (@e2b/[email protected]):

npm install ./e2b-cli-2.24.1-devin-1795622525-deprecate-git-methods.0.tgz

Code Interpreter JS SDK (@e2b/[email protected]):

npm install ./e2b-code-interpreter-2.9.2-devin-1795622525-deprecate-git-methods.0.tgz

Desktop JS SDK (@e2b/[email protected]):

npm install ./e2b-desktop-2.5.1-devin-1795622525-deprecate-git-methods.0.tgz

Python SDK (e2b==2.64.0+devin.1795622525.deprecate.git.methods, with e2b-dockerfile-utils==0.1.2+devin.1795622525.deprecate.git.methods):

pip install ./e2b_dockerfile_utils-0.1.2+devin.1795622525.deprecate.git.methods-py3-none-any.whl ./e2b-2.64.0+devin.1795622525.deprecate.git.methods-py3-none-any.whl

Code Interpreter Python SDK (e2b-code-interpreter==2.11.10+devin.1795622525.deprecate.git.methods):

pip install ./e2b_code_interpreter-2.11.10+devin.1795622525.deprecate.git.methods-py3-none-any.whl

Desktop Python SDK (e2b-desktop==2.7.2+devin.1795622525.deprecate.git.methods):

pip install ./e2b_desktop-2.7.2+devin.1795622525.deprecate.git.methods-py3-none-any.whl

@mishushakov
mishushakov marked this pull request as ready for review November 25, 2026 17:35
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T17:36:31.663536Z ddbc2bf Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code review found no issues

No high-confidence issues detected in this change.

@mishushakov

Copy link
Copy Markdown
Member

can you force-push to restart the stuck workflows

@devin-ai-integration
devin-ai-integration Bot force-pushed the devin/1795622525-deprecate-git-methods branch from ddbc2bf to 2de9c7a Compare November 25, 2026 21:20
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Rebased on main and force-pushed (2de9c7a); all workflows restarted, CodeQL Analyze (actions) now passes.

@mishushakov
mishushakov merged commit 6a729b0 into main Nov 25, 2026
40 checks passed
@mishushakov
mishushakov deleted the devin/1795622525-deprecate-git-methods branch November 25, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant