en un clic
read-gerrit-cl
// Fetch and display the full patch/diff or comments for a Gerrit CL.
// Fetch and display the full patch/diff or comments for a Gerrit CL.
Updates the native_rev dependency in the DEPS file with all correct verification, sync, and testing procedures
Find obsolete, stale, or not reproducible analysis-server issues in the dart-lang/sdk repository.
Updates third party dependencies in the Dart SDK
Find which Dart/Flutter releases contain a specific commit sha.
| name | read_gerrit_cl |
| description | Fetch and display the full patch/diff or comments for a Gerrit CL. |
Use this skill to inspect a Gerrit Change List (CL). This is useful for reviewing code changes, understanding the scope of a modification, checking comments.
The following command-line tools are required:
curl: For making HTTP requests.jq: For parsing JSON (needed for comments).base64: For decoding patch content (needed for patches).Run the read_patch.sh script to fetch the unified diff of a CL.
./scripts/read_patch.sh <change_number> [patchset]
change_number: The numeric ID of the Gerrit change (e.g., 12345).patchset (optional): The patchset number or current (default).To fetch the patch for CL 12345 (latest revision):
./scripts/read_patch.sh 12345
To fetch a specific revision (e.g. patchset 2):
./scripts/read_patch.sh 12345 2
The output will be the unified diff format of the patch.
Run the read_comments.sh script to fetch the comments on a CL.
./scripts/read_comments.sh <change_number>
change_number: The numeric ID of the Gerrit change (e.g., 12345).To fetch comments for CL 12345:
./scripts/read_comments.sh 12345
The output will be a JSON object containing the comments.