diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8f75462f205..d52a8e2c7f6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -23,7 +23,7 @@ cspell.yaml ###################### /packages/http-client-java/ @srnagar @anuchandy @weidongxu-microsoft @haolingdong-msft @XiaofeiCao /website/src/content/docs/docs/emitters/clients/http-client-java/ @srnagar @anuchandy @weidongxu-microsoft @haolingdong-msft @XiaofeiCao -/.github/prompts/http-client-java-development.md @srnagar @anuchandy @weidongxu-microsoft @haolingdong-msft @XiaofeiCao +/.github/instructions/http-client-java.instructions.md @srnagar @anuchandy @weidongxu-microsoft @haolingdong-msft @XiaofeiCao ###################### # Python diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index caa68a307c9..7d485389328 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -119,5 +119,5 @@ TypeSpec is a language for defining cloud service APIs and shapes. This monorepo - [Testserver Generation](./prompts/testserver-generation.md): Instructions for generating TypeSpec HTTP spec test servers - [http-client-csharp Development](./instructions/http-client-csharp.instructions.md): Instructions for developing the C# HTTP client -- [http-client-java Development](./prompts/http-client-java-development.md): Instructions for developing the TypeSpec library for Java client. +- [http-client-java Development](./instructions/http-client-java.instructions.md): Instructions for developing the TypeSpec library for Java client. - [TCGC Upgrade](./prompts/upgrade-tcgc.instructions.md): Instructions for TCGC version on emitters. Activate with: `tcgc upgrade ` diff --git a/.github/prompts/http-client-java-development.md b/.github/instructions/http-client-java.instructions.md similarity index 90% rename from .github/prompts/http-client-java-development.md rename to .github/instructions/http-client-java.instructions.md index f42ea0312e7..26fb0f4faea 100644 --- a/.github/prompts/http-client-java-development.md +++ b/.github/instructions/http-client-java.instructions.md @@ -1,5 +1,5 @@ -> **Scope**: These instructions apply **only** to the `packages/http-client-java` sub-project in this monorepo. Use them whenever Copilot generates code, tests, commit messages, or pull request descriptions for the emitter. If Copilot is used in other sub-projects, these rules do not apply unless stated otherwise. - +--- +applyTo: "packages/http-client-java/**/*" --- - The directories mentioned in this instruction are relative to `/packages/http-client-java`. For example, the root is the folder `/packages/http-client-java`; the directory `generator/http-client-generator-test` refers to `/packages/http-client-java/generator/http-client-generator-test`.