PR Workflow
This guide walks through the complete Autogit workflow: starting from a GitHub issue, making commits, and submitting a pull request—all from the terminal.
Overview
Section titled “Overview”Step 1: Create a Draft PR from Issue
Section titled “Step 1: Create a Draft PR from Issue”Press 6 to open the Draft PR popup.
- Enter a GitHub issue number (e.g.,
123) - Autogit fetches the issue title and generates a branch name
- Optionally toggle “Assign to me” with Ctrl+a
- Confirm to create the branch and draft PR
What happens:
- Creates a branch like
42-add-dark-mode-support - Pushes the branch to origin
- Opens a draft PR linked to the issue
Step 2: Make Changes and Commit
Section titled “Step 2: Make Changes and Commit”After making code changes, stage your files and press 7 to open AI Commit.
- Autogit analyzes your diff
- AI generates a commit message based on your changes
- Review and edit if needed
Toggle p to auto-push after committing.
Repeat this step for each logical chunk of work.
Step 3: Submit the Pull Request
Section titled “Step 3: Submit the Pull Request”When ready to finalize, press 8 to submit your PR.
Submit PR handles everything in one step:
- Stages and commits any uncommitted changes (using AI commit message)
- Pushes to the remote
- Updates the PR body with an AI-generated summary
- Marks the PR as ready for review
Reviewers are notified automatically.
Keyboard Reference
Section titled “Keyboard Reference”| Action | Key |
|---|---|
| Draft PR (branch + PR from issue) | 6 |
| AI Commit | 7 |
| Submit PR | 8 |
| Toggle auto-push | p (in commit popup) |