From f6307a326c491d6e87d777c9cb15bdbd61abeefa Mon Sep 17 00:00:00 2001 From: j-zhangyiyuan Date: Tue, 4 Aug 2026 10:24:23 +0800 Subject: [PATCH] docs: fix stale version requirements and add Rust/Java sections to CONTRIBUTING.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Node.js: v18+ → v20.19+ or v22.12+ (matches package.json engines) - Python: 3.8+ → 3.11+ (matches pyproject.toml requires-python) - Add Rust SDK prerequisites and test command - Add Java SDK prerequisites and test command --- CONTRIBUTING.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f60625ec15..3e4c39c825 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -43,12 +43,12 @@ This is a multi-language SDK repository. Install the tools for the SDK(s) you pl ### Node.js/TypeScript SDK -1. Install [Node.js](https://nodejs.org/) (v18+) +1. Install [Node.js](https://nodejs.org/) (v20.19+ or v22.12+) 1. Install dependencies: `cd nodejs && npm ci` ### Python SDK -1. Install [Python 3.8+](https://www.python.org/downloads/) +1. Install [Python 3.11+](https://www.python.org/downloads/) 1. Install [uv](https://github.com/astral-sh/uv) 1. Install dependencies: `cd python && uv pip install -e . --group dev` @@ -63,6 +63,17 @@ This is a multi-language SDK repository. Install the tools for the SDK(s) you pl 1. Install [.NET SDK 10+](https://dotnet.microsoft.com/download) 1. Install .NET dependencies: `cd dotnet && dotnet restore` +### Rust SDK + +1. Install [Rust](https://www.rust-lang.org/tools/install) (latest stable) +1. Build: `cd rust && cargo build` + +### Java SDK + +1. Install [JDK 17+](https://adoptium.net/) (JDK 25+ for the full multi-release build) +1. Install [Maven](https://maven.apache.org/download.cgi) +1. Build: `cd java && mvn compile` + ## Submitting a Pull Request 1. Fork and clone the repository @@ -88,6 +99,12 @@ cd go && go test ./... && golangci-lint run ./... # .NET cd dotnet && dotnet test test/GitHub.Copilot.SDK.Test.csproj + +# Rust +cd rust && cargo test + +# Java +cd java && mvn test ``` Here are a few things you can do that will increase the likelihood of your pull request being accepted: