✨ Set up Copilot instructions and EditorConfig #163
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR configures GitHub Copilot instructions for the repository following best practices to help maintain code quality and consistency.
Changes
New Configuration Files
.editorconfig.github/instructions/general.instructions.md**/*).github/instructions/README.mdapplyTopattern system worksExisting Files Verified
The repository already had two excellent instruction files that were verified as part of this setup:
.github/instructions/m.instructions.md- Comprehensive Bash script guidelines forbin/m.github/instructions/docs.instructions.md- Documentation-specific guidelines for Markdown filesHow It Works
When GitHub Copilot or other AI coding assistants work on files in this repository, they automatically read and apply the relevant instructions based on the
applyToglob patterns in each instruction file's YAML frontmatter:**/*→ General instructions apply to all filesbin/m→ Bash script-specific instructions/**/*.md→ Documentation-specific instructionsThis ensures AI-assisted changes maintain consistency with established patterns, follow safety practices, and preserve code quality.
Benefits
✅ Consistency - All changes follow established coding patterns and style
✅ Safety - Critical checks and validations are not bypassed
✅ Quality - Code reviews catch common issues automatically
✅ Context - AI assistants have necessary background about the project
✅ Documentation - Clear guidelines for both humans and AI
References
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
downloads.mongodb.orgcurl -sSLf REDACTED(dns block)fastdl.mongodb.orgcurl -Is REDACTED(dns block)https://api.github.com/repos/mongodb/mongo-tools/git/refs/tagscurl -sSf -H Accept: application/vnd.github.v3+json REDACTED(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.