Add simplified guide for testing PRs with Copilot Chat and Skills#5736
Add simplified guide for testing PRs with Copilot Chat and Skills#5736
Conversation
Co-authored-by: gladjohn <90415114+gladjohn@users.noreply.github.com>
|
@copilot that's a lot of instructions. I like the VS code and git cmd instructions but most folks who refer this are developers. can we keep it simple like Example (PR 5733)git fetch origin pull/5733/head:pr/5733
git checkout pr/5733
Safe update (merge latest PR head): git fetch origin pull/[PR_NUMBER]/head
git merge FETCH_HEADForce exact PR state (overwrites local changes/commits on your branch): git fetch origin pull/[PR_NUMBER]/head
git reset --hard FETCH_HEAD2) Open VS CodeFrom the repo folder: code .3) Open GitHub Copilot Chat
Strongly recommended: force Copilot to use your local repoIn Copilot Chat:
If your PR adds “skills” under a specific folder (e.g., 4) Skill test prompts (copy/paste)Test 1 — Vanilla SAMI PoPTest 2 — Vanilla UAMI by ClientIdTest 3 — Vanilla UAMI by ResourceIdTest 4 — Vanilla UAMI by ObjectIdTest 5 — Vanilla Confidential Client PoPTest 6 — FIC (MSI → ConfApp → Bearer)Test 7 — FIC (MSI → ConfApp → mTLS PoP)Test 8 — FIC (ConfApp → ConfApp → Bearer)Test 9 — FIC (ConfApp → ConfApp → mTLS PoP)Test 10 — Shared Guidance5) Verify responses (expected behavior)Copilot should:
Red flags
6) TroubleshootingCopilot is not using the local repo
Git error: “refusing to fetch into branch ... checked out”Use: git fetch origin pull/[PR_NUMBER]/head
git merge FETCH_HEAD(or 7) Quick copy/paste (end-to-end)Example using PR 5733: cd C:\code
git clone https://github.com/AzureAD/microsoft-authentication-library-for-dotnet.git
cd microsoft-authentication-library-for-dotnet
git fetch origin pull/5733/head:pr/5733
git checkout pr/5733
code .
git branch --show-current
git log -1 --oneline |
Co-authored-by: gladjohn <90415114+gladjohn@users.noreply.github.com>
... Simplified the guide as requested. Reduced from 760 to 170 lines, focusing on:
Changes in commit ccd1797. |
|
Does not seem like you can merge this without updating with latest either |
Changes proposed in this request
Adds
docs/testing-prs-with-copilot.md- a developer-focused guide for testing GitHub PRs locally with Copilot Chat and Skills integration in VS Code.Key sections:
Target users: Developers testing skill-related PRs and code reviewers validating Copilot skill implementations.
Testing
Documentation change only. Manual review of content structure, command accuracy, and markdown formatting completed.
Performance impact
N/A - documentation only.
Documentation
Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.