Chat With Commit
Use the Devgen to ask questions about specific commits in a GitHub repository. This feature lets you chat directly with Devgen about recent changes, commit history, or specific updates in the code.
- Open the GitHub repository in Chrome.
- Navigate to the Commits page of the repository.
- Right-click on a commit and select Add to Chat to include the commit in your Devgen side panel chat.
- In the Devgen side panel, type your question about the selected commit to get more information.
If there’s no index set up for the repository, you’ll need to create one first so Devgen can analyze commit details and history.
Best Practices
- Be Specific: Clearly specify what you want to know. For example, instead of "What is this?", ask, “What changes were made in this commit to
Invoice.js
?” - Add Context: Mention specific files or functions within the commit for more detailed answers.
- Ask About Multiple Commits: Add multiple commits to the chat to ask about a sequence of changes.
- Update Index for Recent Commits: For active repositories, update the index regularly to reflect recent commits and keep the chat accurate.
Use Cases
Here are some ways to use the Chat with Commit feature effectively:
-
Understand Code Changes: Ask Devgen for a summary of changes made in a specific commit, like “What was modified in this commit for the
login
function?” -
Troubleshoot Recent Issues: If you’re tracking down a bug introduced recently, add relevant commits to the chat and ask, “Could any of these changes affect the
userAuth
module?” -
Review Feature Updates: For feature-related commits, ask for a high-level summary of changes, such as “How was the dashboard updated in this commit?”
-
Track Dependencies in Commits: If a commit involves multiple files, Devgen can help trace dependencies, like "How do changes in
config.js
connect with updates inapiUtils.js
?" -
Document Changes: Use Devgen to help document what was done in specific commits, making it easier to understand recent work. For example, “What’s the purpose of changes made to
main.css
in this commit?”