Publishing

The Publish button in the editor walks you through pushing your work to GitHub. The system assesses the current state of your workspace and guides you through the right steps based on where things stand.

Your workspace needs to be connected to GitHub for this flow to work.

Create a branch

If you're on the default branch and have changes, the system offers to create a feature branch for you. This keeps your main branch clean and lets you work on a separate branch before merging.

Commit your changes

If you have uncommitted changes, the system moves you to a commit step. The agent generates a commit message based on the diff of your changes. You can use the suggested message or write your own.

Push to remote

If there are remote changes to pull in first, the system pulls them before pushing your commits. This ensures your branch is up to date before publishing.

Create a pull request

Once your branch has differences from the default branch, the system lets you create a pull request. The agent generates a title and description based on the commits and diff, including details about which infrastructure resources changed and the impact of the changes. The pull request is raised against your target branch in GitHub.

If a pull request already exists for your branch, the system shows a link to it and lets you push additional commits to it.