VibeKit integrates with GitHub to allow you to create branches, open pull requests, and more. This is particularly powerful for conversational UIs where users can iteratively request changes and see them reflected in real-time through GitHub.
For conversational UIs, users often want to make multiple iterations on the same feature. Use pushToBranch to continuously update the same branch without creating multiple pull requests:
Copy
const result = await vibeKit.generateCode({ prompt: "Add validation to the login form", mode: "code", branch: pullRequest.branchName, // or an existing branch});await vibeKit.pushToBranch();
This comprehensive GitHub integration allows you to build powerful conversational UIs where users can iteratively request code changes, see them applied in real-time, and create pull requests when they’re satisfied with the results.