Skill

AI Commit Message Skill

git diffから変更内容を解析し、適切なコミットメッセージを自動生成するスキル。コミットメッセージの品質向上に役立ちます。

BW

Bob Wilson

Posted on 10/21/2024

#git#automation#productivity
typescript
export function generateCommitMessage(diff: string): string {
  // git diffを解析
  const changes = analyzeDiff(diff);

  // コミットメッセージを生成
  const type = determineCommitType(changes);
  const scope = determineScope(changes);
  const description = generateDescription(changes);

  return `${type}(${scope}): ${description}`;
}

function analyzeDiff(diff: string) {
  // 変更内容を解析するロジック
  // ...
}

Comments (0)

No comments yet. Be the first to comment!