2716
GB
What is 'commit message convention' (Conventional Commits) and what automation does adhering to it enable?
IN
'कमिट मैसेज कन्वेंशन' (कन्वेंशनल कमिट्स) क्या है और इसका पालन करने से कौन सा स्वचालन सक्षम होता है?
A
Commit conventions are purely cosmetic and provide no functional benefit to the development process
प्रतिबद्धता सम्मेलन पूरी तरह से दिखावटी हैं और विकास प्रक्रिया को कोई कार्यात्मक लाभ नहीं देते हैं
B
Conventional Commits structures messages as type(scope): description (e.g., 'feat(auth): add OAuth support', 'fix(api): handle null response') — this structured format enables automated semantic versioning (feat = minor bump, fix = patch bump, BREAKING CHANGE = major bump) and automated changelog generation directly from commit history
पारंपरिक कमिट्स संदेशों को प्रकार (स्कोप) के रूप में संरचित करता है: विवरण (उदाहरण के लिए, 'फीट (ऑथ): OAuth सपोर्ट जोड़ें', 'फिक्स (एपीआई): हैंडल नल रिस्पॉन्स') - यह संरचित प्रारूप स्वचालित सिमेंटिक वर्जनिंग (फीट = माइनर बम्प, फिक्स = पैच बम्प, ब्रेकिंग चेंज = प्रमुख बम्प) और प्रतिबद्ध इतिहास से सीधे स्वचालित चेंजलॉग पीढ़ी को सक्षम बनाता है।
C
Commit message conventions can only be enforced manually through code review and cannot be automated
प्रतिबद्ध संदेश सम्मेलनों को केवल कोड समीक्षा के माध्यम से मैन्युअल रूप से लागू किया जा सकता है और स्वचालित नहीं किया जा सकता है
D
Conventional Commits requires using a specific programming language and cannot work with polyglot codebases
कन्वेंशनल कमिट्स के लिए एक विशिष्ट प्रोग्रामिंग भाषा का उपयोग करने की आवश्यकता होती है और यह पॉलीग्लॉट कोडबेस के साथ काम नहीं कर सकता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
semantic-release and similar tools parse commit history: 'fix: ...' commits trigger a patch version bump (1.2.3 → 1.2.4); 'feat: ...' triggers minor (1.2.3 → 1.3.0); a commit containing 'BREAKING CHANGE:' triggers major (1.2.3 → 2.0.0). Combined with automated changelog generation, this eliminates manual version number decisions and release notes writing — the commit history itself becomes the source of truth for what changed and how significantly.
व्याख्या (हिन्दी)
सिमेंटिक-रिलीज़ और समान उपकरण पार्स कमिट इतिहास: 'फिक्स: ...' कमिट एक पैच संस्करण बम्प को ट्रिगर करता है (1.2.3 → 1.2.4); 'करतब:...' मामूली ट्रिगर करता है (1.2.3 → 1.3.0); 'ब्रेकिंग चेंज:' वाली एक प्रतिबद्धता प्रमुख ट्रिगर करती है (1.2.3 → 2.0.0)। स्वचालित चेंजलॉग जेनरेशन के साथ मिलकर, यह मैन्युअल संस्करण संख्या निर्णयों और नोट्स लेखन को समाप्त कर देता है - प्रतिबद्ध इतिहास स्वयं सत्य का स्रोत बन जाता है कि क्या और कितना महत्वपूर्ण परिवर्तन हुआ है।