gerrit

Configure Gerrit remotes and post code reviews via the Gerrit API.

3.3k|426|Updated Apr 4, 2018
One-click install
npx skills add https://github.com/storj/storj --skill gerrit-storj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gerrit
Source: https://github.com/storj/storj/tree/main/.claude/skills/gerrit
Command: npx skills add https://github.com/storj/storj --skill gerrit-storj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you interact with Storj's Gerrit code review service, enabling smoother setup and participation in code reviews for Storj repositories. It guides you through configuring a Gerrit remote, installing the commit-msg hook, and posting reviews programmatically, reducing manual steps and helping you focus on code quality.

Core Features & Use Cases

  • Remote setup: Verify and configure a Gerrit remote and ensure the commit-msg hook is in place.
  • Review workflow automation: Post reviews and inline comments to changes via the Gerrit API.
  • Use Case: You just finished a feature, you want to propose changes and provide feedback directly from your terminal, without opening a browser.

Quick Start

Ensure you have a Gerrit remote configured and the "commit-msg" hook installed. If not:

  • Download the commit-msg hook: mkdir -p git rev-parse --git-dir/hooks/
    && curl -Lo git rev-parse --git-dir/hooks/commit-msg https://review.dev.storj.tools/tools/hooks/commit-msg
    && chmod +x git rev-parse --git-dir/hooks/commit-msg Then configure the Gerrit remote:
  • Add a new remote with: git remote add {remote-name} "ssh://{username}@review.dev.storj.tools:29418/storj/storj" Post a review example:
  • Use the provided script to post a review: ./scripts/submit_review.sh review.json $(git rev-parse HEAD)