Skip to main content

read-gerrit-cl

Fetch and display the full patch/diff or comments for a Gerrit CL.

설치로 이동

소스 정보

저장소
dart-lang/sdk
최근 소스 활동
2026년 9월 12일 20:04
감지된 SKILL.md 언어
영어
스타
11,290
포크
1,901

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
read_gerrit_cl
description
Fetch and display the full patch/diff or comments for a Gerrit CL.
# Instructions 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. ## Requirements 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). ## Scripts ### 1. Read Patch Run the `read_patch.sh` script to fetch the unified diff of a CL. #### Usage ```bash ./scripts/read_patch.sh <change_number> [patchset] ``` #### Arguments 1. `change_number`: The numeric ID of the Gerrit change (e.g., `12345`). 2. `patchset` (optional): The patchset number or `current` (default). #### Example To fetch the patch for CL 12345 (latest revision): ```bash ./scripts/read_patch.sh 12345 ``` To fetch a specific revision (e.g. patchset 2): ```bash ./scripts/read_patch.sh 12345 2 ``` The output will be the unified diff format of the patch. ### 2. Read Comments Run the `read_comments.sh` script to fetch the comments on a CL. #### Usage ```bash ./scripts/read_comments.sh <change_number> ``` #### Arguments 1. `change_number`: The numeric ID of the Gerrit change (e.g., `12345`). #### Example To fetch comments for CL 12345: ```bash ./scripts/read_comments.sh 12345 ``` The output will be a JSON object containing the comments.
GitHub에서 보기