Skip to main content
Inspector has two modes for managing your code changes: Create PR and Source Control. Switch between them using the dropdown at the top of the publish panel.

Create PR

The Create PR mode is designed for designers and non-technical users who want to publish their changes without worrying about git details. It reduces the entire commit-push-PR workflow to a single button.

How it works

  1. Select a base branch from the dropdown (defaults to main)
  2. Click Create Pull Request
  3. Inspector’s AI agent automatically commits your changes, pushes them, and opens a pull request
The panel shows the merge direction with an arrow: base branch ← current branch.

PR status

The PR icon on the left indicates the current state:
IconMeaning
Gray PR iconNo pull request exists yet
Spinning loaderChecking PR status
Green PR iconA pull request exists — click to open it on GitHub

Updating an existing PR

When a PR already exists for your branch and you make additional changes, the button changes to Update Pull Request. Clicking it commits and pushes your new changes to the existing PR.

Pulling remote changes

If your teammates have pushed changes to the PR branch, the panel detects incoming commits and offers:
  • Pull PR Changes — pulls the latest remote commits
  • Commit & Pull PR Changes — commits your local changes first, then pulls remote changes and resolves any conflicts

Source Control

The Source Control mode gives you full control over your git workflow, similar to what you’d find in VS Code. It’s intended for developers who want granular control over commits, staging, and syncing.

Viewing changes

All modified, added, and deleted files appear in a list. Each file shows:
  • A colored icon indicating the change type (modified, added, deleted, renamed)
  • The file name
  • Buttons to discard changes, or stage/unstage

Committing

  1. Type a commit message in the input field
  2. Click the Commit button, or use the dropdown for additional options:
    • Commit — commit staged changes (or all changes if nothing is staged)
    • Commit & Push — commit and push in one step
    • Commit & Sync — commit, pull remote changes, then push

Syncing

The sync status shows incoming and outgoing commits. Use the sync controls to:
  • Push — push committed changes to the remote
  • Pull — pull remote changes
  • Sync — pull then push in one operation
  • Fetch — check for remote changes without applying them

Multi-repo support

If your project contains multiple git repositories (e.g. a monorepo with submodules), the Source Control view groups changes by repository with collapsible sections.

When to use which

Create PRSource Control
Best forDesigners, quick publishingDevelopers, detailed control
Git knowledge neededNoneSome familiarity helpful
Commit messagesWritten automatically by the AI agentYou write your own
Staging filesNot needed — all changes are includedStage individual files
Pull requestsCreated in one clickCreate via the PR form view
SyncingAutomatic when neededManual push, pull, fetch, sync
Both modes require a connected GitHub repository. If your project doesn’t have one, the panel will prompt you to initialize a repository and publish it to GitHub.