Submit the current branch as a Graphite PR
Submits the current stacked diff branch as a pull request using the Graphite CLI.
/plugin marketplace add dataflightsolutions/claude-plugins/plugin install graphite@dataflight-claude-pluginsSubmit the current stacked diff branch as a pull request using the Graphite CLI.
This command runs gt submit which:
Execute these steps in order. Stop and report errors if any step fails.
git rev-parse --is-inside-work-tree
If this fails, tell the user: "Not in a git repository. Navigate to a git repo first."
gt --version
If this fails, tell the user: "Graphite CLI not found. Install with: npm install -g @withgraphite/graphite-cli@latest"
git branch --show-current
If the branch is main or master, warn the user: "You are on the trunk branch. PRs are typically submitted from feature branches created with gt create."
gt submit
This command will:
After successful submission, report:
Example output format:
PR submitted for branch: feature/auth-token-handling
PR URL: https://github.com/user/repo/pull/123
The pull request is now open and ready for review.
If gt submit fails:
gt auth)gt create first)gt submit --stack manuallygt submit on the same branch update the existing PR