Welcome! This repository is designed to help you demonstrate GitHub Copilot Spaces capabilities to developers new to GitHub Enterprise Cloud (GHEC).
GitHub Copilot Spaces is an AI-powered workspace that helps developers with complex tasks like:
- Building new features across multiple files
- Debugging and fixing issues
- Refactoring code
- Understanding unfamiliar codebases
- Writing tests and documentation
This repository contains multiple projects and scenarios to showcase Copilot Spaces:
A Flask-based REST API for managing a customer database. Great for demonstrating:
- Building new API endpoints
- Adding authentication
- Writing tests
- Debugging issues
A simple Express.js web server. Perfect for showing:
- Adding new routes
- Implementing middleware
- Error handling
- Refactoring
Python scripts for data analysis. Ideal for:
- Working with CSV/JSON data
- Data transformation
- Adding visualization
SQL schemas and migration scripts. Demonstrates:
- Creating new tables
- Writing complex queries
- Schema migrations
Intentional bugs for debugging demos. Shows:
- Finding and fixing bugs
- Understanding error messages
- Code analysis
- Open this repository in GitHub
- Click on "Code" → "Open with Copilot"
- Or use the GitHub CLI:
gh copilot space create
Task: "Add a new endpoint to the Python API that returns customer statistics"
- Navigate to
/python-api - Ask Copilot to add the endpoint
- Watch it modify multiple files
Task: "There's a bug in the bug-examples folder causing a null pointer error"
- Open the bug example file
- Ask Copilot to identify and fix the bug
- See it explain the issue
Task: "Add unit tests for the customer service"
- Ask Copilot to generate comprehensive tests
- See it create test files with proper structure
Task: "Refactor the data processing script to use pandas instead of manual loops"
- Show how Copilot can modernize code
- Demonstrate understanding of best practices
Task: "Add docstrings and README documentation for the Node.js app"
- Watch Copilot generate comprehensive docs
- Show understanding of project structure
- Multi-file Editing: Copilot can modify multiple files simultaneously
- Context Awareness: It understands your entire codebase
- Best Practices: Follows language-specific conventions
- Testing: Can write comprehensive test suites
- Debugging: Helps identify and fix issues
- Documentation: Generates clear, helpful documentation
- Start with simple tasks and progress to complex ones
- Show how Copilot asks clarifying questions
- Demonstrate error handling and validation
- Highlight time savings compared to manual coding
- Show the chat interface and inline suggestions
Q: Does it work with our existing code? A: Yes! Copilot Spaces understands any codebase.
Q: What languages are supported? A: Python, JavaScript, TypeScript, Java, C#, Go, Ruby, and many more.
Q: Is my code secure? A: Your code is encrypted and private. GitHub doesn't use GHEC customer code for training.
Q: Can it handle complex architectures? A: Yes! It can work with microservices, monoliths, and complex projects.
MIT License - Feel free to use this for your demos!