Jump to content

Connect Leeroopedia MCP: Equip your AI agents to search best practices, build plans, verify code, diagnose failures, and look up hyperparameter defaults.

Principle:Apache Kafka JIRA Reference Standardization

From Leeroopedia


Knowledge Sources
Domains Development_Workflow, Code_Quality
Last Updated 2026-02-09 12:00 GMT

Overview

A text normalization process that extracts and standardizes JIRA issue references in commit messages to a consistent format.

Description

JIRA Reference Standardization parses PR titles and commit messages to extract JIRA issue identifiers (e.g., KAFKA-12345) and reformats them into the project's standard commit message format: KAFKA-XXXXX; Description. It handles various input formats including inconsistent casing, missing semicolons, and component prefixes.

Usage

Use this principle when creating merge commits to ensure consistent commit message formatting across the project history.

Theoretical Basis

  1. Pattern Matching: Use regex to extract JIRA IDs matching the pattern KAFKA-\d+.
  2. Component Extraction: Identify and normalize component prefixes from the title.
  3. Format Standardization: Reconstruct the title in the standard format KAFKA-XXXXX; Description.
  4. Deduplication: Remove duplicate JIRA references that may appear in different parts of the title.

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment