Skip to content

Add branch lifecycle and git config methods to Python client#1969

Merged
shangyian merged 7 commits into
DataJunction:mainfrom
shangyian:branching-client
Apr 8, 2026
Merged

Add branch lifecycle and git config methods to Python client#1969
shangyian merged 7 commits into
DataJunction:mainfrom
shangyian:branching-client

Conversation

@shangyian
Copy link
Copy Markdown
Collaborator

@shangyian shangyian commented Apr 8, 2026

Summary

The Python client now supports git-backed branch management methods:

Set up root namespace

Set up a git root namespace with:

dj.init_git_root("myns", github_repo_path="org/repo", default_branch="main")

Create and manage branches

Create a branch with:

branch = dj.create_branch("myns", "feature-x")

List branches under a root namespace with:

branches = dj.list_branches("myns")

Delete a branch with:

dj.delete_branch("myns", "feature-x")

Inspect and clear git config

Inspect git config for a namespace with:

config = dj.get_git_config("myns")

Clear it with:

dj.clear_git_config("myns")

Test Plan

Deployment Plan

@shangyian shangyian marked this pull request as ready for review April 8, 2026 05:20
@shangyian shangyian merged commit 46020fd into DataJunction:main Apr 8, 2026
13 checks passed
@shangyian shangyian deleted the branching-client branch April 8, 2026 05:22
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 8, 2026

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit f017189
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/69d5dd02fa54c600080075c3

1 similar comment
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 8, 2026

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit f017189
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/69d5dd02fa54c600080075c3

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 8, 2026

Deploy Preview for thriving-cassata-78ae72 ready!

Name Link
🔨 Latest commit 31a8ade
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/69d5e0d9f96c6300088eb3a8
😎 Deploy Preview https://deploy-preview-1969--thriving-cassata-78ae72.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 8, 2026

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit af226fb
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/69d5e1b187d47b0008d9d369

1 similar comment
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 8, 2026

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit af226fb
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/69d5e1b187d47b0008d9d369

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 8, 2026

Deploy Preview for thriving-cassata-78ae72 ready!

Name Link
🔨 Latest commit 9a6f540
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/69d5e396f6f0120008b2ad23
😎 Deploy Preview https://deploy-preview-1969--thriving-cassata-78ae72.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

1 similar comment
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 8, 2026

Deploy Preview for thriving-cassata-78ae72 ready!

Name Link
🔨 Latest commit 9a6f540
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/69d5e396f6f0120008b2ad23
😎 Deploy Preview https://deploy-preview-1969--thriving-cassata-78ae72.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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