GitHub Plugin
The GitHub plugin is a crucial component of VMPilot that enables integration with GitHub's issue tracking system. It allows you to create, view, and manage GitHub issues directly from your VMPilot sessions, providing continuity and context for your development tasks.
Overview
This plugin leverages the GitHub CLI (gh
) to interact with GitHub repositories. It enables VMPilot to:
- Create new issues with appropriate templates and labels
- View existing issues and their details
- Comment on issues to track progress
- Close and reopen issues as needed
Why It Matters
The GitHub plugin transforms how you work with VMPilot by providing several key benefits:
-
Context Preservation: Start a chat with "look at issue 123" to instantly provide context to the LLM about what you're working on, eliminating the need to repeatedly describe the same task.
-
Structured Problem Definition: Collaborate with the LLM to articulate what you're trying to accomplish, to flesh out the details.
-
Progress Tracking: Adding comments to issues creates a timeline of your work, helping the LLM keep track of the progress and decisions.
-
Collaborative Workflow: Even when working alone with the LLM, you can use issues in the same way a team of developers would collaborate, providing a structured approach to development.
Prerequisites
To use the GitHub plugin, you need:
- GitHub CLI (
gh
) installed and configured on your system - Authentication with GitHub (
gh auth login
) - A GitHub repository
Common Commands
Viewing Issues
To view an issue and its details:
Bash | |
---|---|
To see comments associated with an issue:
Bash | |
---|---|
To list all open issues:
Bash | |
---|---|
Creating Issues
To create a new issue:
Bash | |
---|---|
VMPilot will: 1. Ask you clarifying questions about the issue 2. Guide you through filling out the required fields based on issue templates 3. Confirm with you before creating the issue 4. Provide the issue number and link once created
Commenting on Issues
To add a comment to an existing issue:
Bash | |
---|---|
Workflow Example
Here's a typical workflow using the GitHub plugin:
-
Start a task by creating an issue:
Text Only -
Begin work with context:
Text Only -
As you make progress, add comments:
Text Only -
Close the issue when complete:
Text Only
Integration with Development Process
The GitHub plugin enables a structured development approach even for solo developers:
- Task Definition: Issues clearly define what needs to be done
- Work History: Comments provide a record of decisions and progress
- Knowledge Retention: Closed issues serve as documentation for how problems were solved
- Continuity: New VMPilot sessions can quickly pick up context from previous work