Skip to content

Commit 653bb73

Browse files
http-client-java, copilot-instruction for "Update package for latest compiler" (#7158)
Typically use "Claude" model in code-insider, in agent mode. The "Update Package for Latest Dependencies" instruction works fine (when this be simple). Result PR #7159 . I've also tried the "prepare patch release" instruction. Seems OK. "Save the files" (the last step of "Update Package for Latest Dependencies" and "Update Package and Prepare for Minor/Patch Release") needs to be done by dev. --- similar file in js https://github.com/microsoft/typespec/blob/main/packages/http-client-js/.github/copilot-instructions.md
1 parent 34733d7 commit 653bb73

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
> **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.
2+
3+
---
4+
5+
# Update Package for Latest Dependencies
6+
7+
Steps:
8+
9+
1. Run `ncu -u` on "package.json" in root and in both "generator/http-client-generator-clientcore-test" and "generator/http-client-generator-test" folders.
10+
2. Update `peerDependencies` in root "package.json", according to the versions in `devDependencies`.
11+
3. Update `override` in the other 2 "package.json", according to the versions in root "package.json".
12+
4. Save the files, and run `npm install` in root, so that "package-lock.json" would be updated.
13+
14+
Developer may need to run `Generate.ps1` in "generator/http-client-generator-clientcore-test" and "generator/http-client-generator-test" folders, to update the e2e spector tests.
15+
16+
# Update Package and Prepare for Minor/Patch Release
17+
18+
Steps:
19+
20+
1. Bump minor/patch version of `@typespec/http-client-java` in the 3 "package.json".
21+
2. Save the file, and run `npm install` in root, so that "package-lock.json" would be updated.
22+
23+
The [publish to NPM](https://dev.azure.com/azure-sdk/internal/_build?definitionId=7294) would be automatically triggered, after the PR is merged.

0 commit comments

Comments
 (0)