Skip to content

Commit a0f805a

Browse files
authored
[JS] Updated copilot instruction for local SDK generation workflow (#36985)
References the workflow instruction file from the `eng/common` folder. **Test screenshots** Code generation and compile: <img width="1014" height="1254" alt="image" src="https://github.com/user-attachments/assets/9d8a5649-8b12-4f14-9c3f-f3d06e3a42c8" /> Running checks: <img width="970" height="649" alt="image" src="https://github.com/user-attachments/assets/e36a1557-e540-48aa-86e2-0e0e58a42e5e" /> Package metadata update: <img width="940" height="918" alt="image" src="https://github.com/user-attachments/assets/bb6ee82e-89b5-4630-97fd-e8db2771c458" />
1 parent b563d97 commit a0f805a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/copilot-instructions.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,18 @@ Prioritize TypeScript-specific practices over general rules when conflicts occur
109109

110110
When possible, refer to the Azure SDK for JS Design Guidelines for specific examples and best practices. Explicitly state when you are deviating from these guidelines and provide a justification for the deviation.
111111

112+
## Local SDK Generation and Package Lifecycle (TypeSpec)
113+
114+
### AUTHORITATIVE REFERENCE
115+
For all TypeSpec-based SDK workflows (generation, building, validation, testing, versioning, and release preparation), follow #file:../eng/common/instructions/azsdk-tools/local-sdk-workflow.instructions.md
116+
117+
### DEFAULT BEHAVIORS
118+
- **Repository:** Use the current workspace as the local SDK repository unless the user specifies a different path.
119+
- **Configuration:** Identify `tsp-location.yaml` from files open in the editor. If unclear, ask the user.
120+
121+
### REQUIRED CONFIRMATIONS
122+
Ask the user for clarification if repository path or configuration file is ambiguous.
123+
112124
## SDK release
113125

114126
For detailed workflow instructions, see [SDK Release](https://github.com/Azure/azure-sdk-for-js/blob/main/eng/common/instructions/copilot/sdk-release.instructions.md).

0 commit comments

Comments
 (0)