Module (08): (GHDR) Developer Use Cases for AI with GitHub Copilot #26
MohamedRadwan-DevOps
announced in
Documentation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Module (08): (GHDR) Developer Use Cases for AI with GitHub Copilot
Document Type: GHDR (GitHub Documentation Reference)
Scope: This document provides the official extracted content from GitHub Docs corresponding to Module (08): Developer Use Cases for AI with GitHub Copilot. It preserves the original wording exactly as published, extending and complementing the Microsoft Learn module with additional verified information.
Introduction
Where you can use Copilot
Copilot is available:
Source: What is GitHub Copilot?
Getting access to Copilot
For individuals
For organizations and enterprises
Source: What is GitHub Copilot?
Choosing the right Copilot interface
While Copilot inline suggestions and Copilot Chat share some functionality, the two tools are best used in different circumstances.
Inline suggestions work best for:
Copilot Chat is best suited for:
Source: Best Practices for Using GitHub Copilot
Validate and improve Copilot outputs
While Copilot is very powerful, it is still a tool capable of making mistakes, and you should always validate the code it suggests. Recommended actions include:
Source: Best Practices for Using GitHub Copilot
Stay current
New features are regularly added to Copilot to create new abilities, build on existing features, and improve the user experience. To stay up-to-date with Copilot’s features, see the changelog.
Source: Best Practices for Using GitHub Copilot
Boost developer productivity with AI
Choosing your enterprise’s plan for GitHub Copilot
Copilot Business ($19 USD per user per month) … Copilot Enterprise ($39 USD per user per month) …”
Source: Choosing your enterprise’s plan for GitHub Copilot
Requests in GitHub Copilot (premium requests)
Source: Requests in GitHub Copilot
Getting code suggestions in your IDE
Source: Getting code suggestions in your IDE with GitHub Copilot
Syncing documentation with code changes
Source: Syncing documentation with code changes
Using GitHub Copilot to explore projects
Source: Using GitHub Copilot to explore projects
Copilot text completion (PR descriptions) — public preview
Source: GitHub Copilot text completion
Creating a pull request summary with GitHub Copilot
Source: Creating a pull request summary with GitHub Copilot
Using GitHub Copilot code review
.github/copilot-instructions.md).Source: Using GitHub Copilot code review
About GitHub Copilot coding agent
copilot/*), sandboxed environment, and compliance/audit controls.Source: About GitHub Copilot coding agent
Prompt engineering for GitHub Copilot Chat
Source: Prompt engineering for GitHub Copilot Chat
Align with developer preferences
Personal custom instructions
Source: Adding personal custom instructions for GitHub Copilot
Repository custom instructions
.github/copilot-instructions.md; “Path-specific custom instructions” in.github/instructions/NAME.instructions.mdusingapplyToglobs; “Agent instructions” viaAGENTS.md(orCLAUDE.md/GEMINI.md).excludeAgent: "code-review"(or"coding-agent").Source: Adding repository custom instructions for GitHub Copilot
Organization custom instructions
Source: Adding organization custom instructions for GitHub Copilot
AI model comparison (choose the best model for your task)
Source: AI model comparison
Changing the AI model for Copilot Chat
Source: Changing the AI model for GitHub Copilot Chat
Changing the AI model for inline suggestions
Source: Changing the AI model for GitHub Copilot inline suggestions
Examples of task-aligned assistance
Debugging invalid JSON
Source: Debugging invalid JSON
Handling API rate limits
requests+HTTPAdapter/Retry.)Source: Handling API rate limits
AI in the Software Development Lifecycle (SDLC)
Plan & Track (Issues)
Create or update issues from natural language (or screenshots) in the Copilot Chat immersive view. Copilot drafts the title, body, labels, assignees, and respects your repo’s issue forms/templates. You can edit, switch templates without losing content, or ask Copilot to revise. It also supports multiple issues in one prompt and sub‑issues (issue trees); you can review an issue tree, expand/collapse items, and publish each draft. Permissions are unchanged—you must already be allowed to create issues in the target repo.
Assign issues to Copilot (requires Copilot coding agent enabled). Ask naturally (“Assign this issue to Copilot”) or choose Copilot in assignees; Copilot starts a session and opens a PR with its changes.
Source: Using GitHub Copilot to create or update issues
Develop & Review (Pull Requests)
Source: Using GitHub Copilot to explore pull requests
CI/CD (GitHub Actions)
Source: Troubleshooting workflows
Secure (Code Scanning & Autofix)
Copilot Autofix can generate fixes for supported CodeQL alerts: open an alert → Generate fix → Create PR with fix (draft PR on a new branch). Also available via Autofix historical alerts API.
Assign alerts to Copilot coding agent (public preview): from an alert, choose Assignees → Copilot; Copilot opens a PR within ~30 s with a summary and changes.
Dismiss, bulk‑dismiss, or re‑open alerts (records reason; removal applies across branches). Manage stale configurations per branch from the alert’s Affected branches panel.
Source: Resolving code scanning alerts
Understand limitations and measure impact
Rate limits for GitHub Copilot
Source: Rate limits for GitHub Copilot
Data available in Copilot usage metrics
Source: Data available in Copilot usage metrics
REST API endpoints for Copilot metrics
/orgs/{org}/copilot/metrics– Organization metrics./enterprises/{enterprise}/copilot/metrics– Enterprise metrics./enterprises/{enterprise}/team/{team_slug}/copilot/metrics– Team metrics.since,until,page, andper_page(up to 100 days of data).manage_billing:copilot,read:org, orread:enterprisescopes.Source: REST API endpoints for Copilot metrics
Reconciling Copilot usage metrics across dashboards, APIs, and reports
Source: Reconciling Copilot usage metrics across dashboards, APIs, and reports
Monitoring your GitHub Copilot usage and entitlements
https://github.com/settings/billing.Source: Monitoring your GitHub Copilot usage and entitlements
Beta Was this translation helpful? Give feedback.
All reactions