MS Copilot AI wrappers and GitHub Actions automation suite.
This repository provides an intelligent GitHub Actions workflow system powered by MS Copilot for automated code review, security scanning, and continuous integration.
- 🤖 Intelligent Code Review: Automated code review using MS Copilot AI
- 📝 Documentation Review: Ensures documentation stays accurate and up-to-date
- 📦 Dependency Security: Scans dependencies for vulnerabilities and license issues
- 🧠 Agent Memory: Persistent knowledge base for consistent reviews
- 🔄 Multi-language Support: Python, JavaScript, TypeScript, and more
- ⚡ CLI Tool: Command-line interface for local development and workflow management
- GitHub repository with Actions enabled
- MS Copilot API access (set
COPILOT_API_KEYsecret)
- Copy the
.githubdirectory to your repository - Set up required secrets in your GitHub repository:
COPILOT_API_KEY: Your MS Copilot API key
- The workflows will automatically trigger on pull requests and pushes
-
Clone this repository:
git clone https://github.com/JakeDot/ms-copilot.git cd ms-copilot -
Run the setup script:
./setup-ms-copilot.sh
-
The setup script will:
- Create an
ms-copilotalias in your current shell session - Optionally add the alias to your shell configuration file (
.bashrc,.zshrc, or.config/fish/config.fish) - Make the alias persistent across shell sessions
- Create an
-
Verify the installation:
ms-copilot help
Main workflow that coordinates all review jobs:
- Classify Changes: Detects which files changed and routes to appropriate reviewers
- Code Review: Reviews code quality, security, performance, and test coverage
- Documentation Review: Ensures docs match code behavior
- Dependency Review: Scans for vulnerable or problematic dependencies
The system uses persistent memory files in .github/agents/memory/ to maintain consistency:
coding-conventions.yml: Project coding standardssecurity-best-practices.yml: Security guidelines and requirementsfalse-positives.yml: Known false positives to ignore
These memory files help the AI agents learn from past reviews and maintain consistent standards.
After running the setup script, you can use the ms-copilot command:
# Show help and available commands
ms-copilot help
# Show version
ms-copilot version
# Validate GitHub Actions workflows
ms-copilot validate
# Test workflow configuration
ms-copilot test-workflow
# Re-run setup
ms-copilot setupThe workflow automatically triggers on:
- Pull requests (opened, synchronized, reopened)
- Pushes to main/master/develop branches
You can manually trigger a review using workflow dispatch:
gh workflow run ms-copilot-orchestrate.ymlCustomize the workflows by editing .github/workflows/ms-copilot-orchestrate.yml:
- Add or remove file type classifications
- Adjust review criteria
- Customize output formats
- Add new review jobs
Contributions welcome! Please:
- Follow the coding conventions in
.github/agents/memory/coding-conventions.yml - Add tests for new features
- Update documentation as needed
See LICENSE file for details.