Commit 246e711d authored by platyhouse's avatar platyhouse

.

parent 94d0fac6
#!/bin/sh
#!/bin/bash
echo "커밋 메세지를 작성중..."
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# claude 출력을 변수에 저장
COMMIT_MSG=$(claude -p "$(cat "$SCRIPT_DIR/ptyGitCommit.prompt")")
# 커밋 실행
if [ -n "$COMMIT_MSG" ]; then
echo "생성된 커밋 메세지:"
echo "$COMMIT_MSG"
git commit -m "$COMMIT_MSG"
else
if [ -z "$COMMIT_MSG" ]; then
echo "커밋 메세지 생성 실패"
exit 1
fi
# 생성된 메세지 표시
echo ""
echo "=========================================="
echo "생성된 커밋 메세지:"
echo "=========================================="
echo "$COMMIT_MSG"
echo "=========================================="
echo ""
# 확인
read -p "이 메세지로 커밋하시겠습니까? (y/n): " confirm
if [ "$confirm" = "y" ] || [ "$confirm" = "Y" ]; then
git commit -m "$COMMIT_MSG"
echo "✅ 커밋 완료!"
else
echo "❌ 커밋 취소됨"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment