gerrit

List, improve, and submit Gerrit code review changes with Jenkins validation.

2.3k|552|Updated Feb 20, 2019
One-click install
npx skills add https://github.com/Checkmk/checkmk --skill gerrit-checkmk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gerrit
Source: https://github.com/Checkmk/checkmk/tree/main/.github/skills/gerrit
Command: npx skills add https://github.com/Checkmk/checkmk --skill gerrit-checkmk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines interactions with the Gerrit code review system, allowing for efficient management of code changes and validation processes.

Core Features & Use Cases

  • Submit Changes: Submit Gerrit changes and their unmerged parents with the necessary approvals.
  • Improve Changes: Fetch current states, check for negative Verified scores, and retrieve Jenkins job results for failed stages.
  • List Changes: View all open Gerrit changes or filter for those needing attention.
  • Retrigger Validation: Re-run change validation without needing to push commits again.

Quick Start

Use the gerrit skill to list all your open changes.

Frequently Asked Questions about gerrit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I submit Gerrit code changes that have unmerged parent commits?

You can submit Gerrit changes and their unmerged parents by ensuring the necessary approvals are in place. This skill automates submitting dependent commits sequentially once validation passes.

Can I retrigger Jenkins validation for a Gerrit change without pushing a new commit?

Yes, you can retrigger change validation directly through Gerrit without needing to push new commits. This re-runs the automated Jenkins checks against the existing code review state.

How do I check Jenkins job results for failed validation stages in Gerrit?

To check Jenkins results for failed stages, the skill fetches the current change state, identifies negative Verified scores, and retrieves the specific Jenkins job logs that caused the failure.

What is the best way to list all open Gerrit changes needing attention?

Listing open Gerrit changes allows you to view all pending reviews or filter specifically for those requiring attention. This helps manage code review queues efficiently within the development lifecycle.

Do I need to install the gerrit-change-log command to fetch code review logs?

Yes, fetching detailed logs requires setting up the gerrit-change-log command. The skill provides the necessary instructions for configuring this command to retrieve change history.