-
-
Notifications
You must be signed in to change notification settings - Fork 253
Add comprehensive GitHub Copilot development instructions #2152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2152 +/- ##
=======================================
Coverage 86.07% 86.07%
=======================================
Files 107 107
Lines 16795 16795
=======================================
Hits 14457 14457
Misses 2338 2338 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: HerringtonDarkholme <2883231+HerringtonDarkholme@users.noreply.github.com>
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds comprehensive development instructions for GitHub Copilot coding agents working with the ast-grep codebase. The instructions provide detailed workflows for building, testing, and validating the multi-language AST search and rewriting tool.
- Establishes standardized build commands with specific timing expectations and timeout requirements
- Provides complete setup instructions for Rust core, Node.js NAPI bindings, and Python bindings
- Includes validation scenarios for functional testing after code changes
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Herrington Darkholme <2883231+HerringtonDarkholme@users.noreply.github.com>
This PR adds a comprehensive
.github/copilot-instructions.md
file that provides GitHub Copilot coding agents with everything needed to work effectively in the ast-grep codebase.What's Included
The instructions cover all essential development workflows:
Build and Test Commands
Multi-Language Support
Critical Timeout Guidelines
Validation Scenarios
Complete functional testing workflows that agents should run after making changes:
Repository Navigation
Validation
All documented commands have been thoroughly tested and validated to work correctly. The instructions follow the imperative tone requirement and include exhaustive build timing measurements from actual execution.
Fixes #2151.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
plugins.dprint.dev
/home/REDACTED/work/ast-grep/ast-grep/crates/napi/node_modules/dprint/dprint check
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.