Documentation
¶
Index ¶
- Constants
- func CheckRepository() error
- func Commit(message string, opts CommitOptions) error
- func CommitWithFile(messageFile string, opts CommitOptions) error
- func ExtractJiraIssue(branchName string) string
- func FormatCommitMessage(message string) (string, error)
- func GetCurrentBranch() (string, error)
- func GetLastCommitMessage() (string, error)
- func GetStagedDiff() (string, error)
- func GetStagedFiles() ([]string, error)
- type CommitOptions
Constants ¶
View Source
const (
// MaxDiffSize는 AI에게 전달할 최대 diff 크기 (약 10KB, ~2500 토큰)
MaxDiffSize = 10000
)
Variables ¶
This section is empty.
Functions ¶
func CommitWithFile ¶ added in v1.2.0
func CommitWithFile(messageFile string, opts CommitOptions) error
CommitWithFile은 파일에서 커밋 메시지를 읽어 커밋합니다 (멀티라인 메시지용)
func ExtractJiraIssue ¶
ExtractJiraIssue extracts JIRA issue key from branch name Pattern: PROJECT-123, ABC-456, DEVOPS2-430, etc.
func FormatCommitMessage ¶
FormatCommitMessage automatically detects and adds JIRA issue key if present in branch name No configuration needed - works automatically based on branch name pattern
func GetCurrentBranch ¶
GetCurrentBranch returns the current git branch name
func GetLastCommitMessage ¶
GetLastCommitMessage는 마지막 커밋 메시지를 반환합니다
Types ¶
type CommitOptions ¶ added in v1.2.0
type CommitOptions struct {
NoVerify bool
GPGSign bool // true면 -S 플래그 추가
NoGPGSign bool // true면 --no-gpg-sign 플래그 추가
}
CommitOptions는 커밋 옵션을 담는 구조체입니다
Click to show internal directories.
Click to hide internal directories.