GitHub Integration
Pilot monitors GitHub issues and automatically implements tasks.
Setup
1. Create a Personal Access Token
- Go to GitHub Settings → Developer Settings → Personal Access Tokens
- Create a token with these scopes:
repo(full access)workflow(if using GitHub Actions)
2. Configure Pilot
# ~/.pilot/config.yaml
github:
token: ${GITHUB_TOKEN}
poll_interval: 30s
labels:
- pilot3. Start Pilot
pilot start --githubCreating Tasks
Label any issue with pilot to queue it for execution:
gh issue create \
--title "Add user authentication" \
--label pilot \
--body "Implement JWT-based authentication with refresh tokens"Issue Format
For best results, structure issues like this:
## Description
[What needs to be done]
## Requirements
- [ ] Requirement 1
- [ ] Requirement 2
## Context
[Any relevant context or links]
## Acceptance Criteria
- [ ] Tests pass
- [ ] Documentation updatedPull Request Flow
When Pilot completes a task:
- Creates a new branch:
pilot/GH-{issue-number} - Commits changes with conventional commit messages
- Creates a PR linked to the issue
- Adds a summary comment on the issue
Labels
| Label | Behavior |
|---|---|
pilot | Queue for execution |
pilot:urgent | Process before other tasks |
pilot:hold | Skip this issue |
Webhooks (Advanced)
For real-time processing, configure a webhook:
pilot webhook setup --githubThis eliminates polling delay for instant task pickup.