Skip to content

Conversation

@yujeong-jeon
Copy link
Contributor

@yujeong-jeon yujeong-jeon commented Feb 6, 2026

Related Issue

Describe your changes

@naverpay/commithelper-go에 사용자 정의 커밋 메시지 템플릿 기능을 추가했습니다.

주요 변경사항

  • 템플릿 설정 추가: .commithelperrc.jsontemplate 필드 추가
  • Go text/template 지원: 표준 Go 템플릿 문법으로 커밋 메시지 형식 커스터마이징
  • 하위 호환성 유지: 템플릿이 없으면 기존 [#123] message 형식 유지

사용 가능한 템플릿 변수

  • {{.Message}}: 원본 커밋 메시지
  • {{.Number}}: 이슈 번호
  • {{.Repo}}: 레포지토리 이름
  • {{.Prefix}}: 전체 prefix (#123 또는 org/repo#123)

사용 예시

{
    "rules": {
        "feature": null
    },
    "template": "{{.Message}}\n\nRef. {{.Prefix}}"
}

결과:

:sparkles: Add new feature

Ref. #123

Request

  • 템플릿 변수가 직관적인지 확인
  • README 문서가 충분히 명확한지 검토
  • 에러 핸들링 (템플릿 파싱 실패 시 기본 포맷으로 fallback) 동작 확인
스크린샷 2026-02-07 오전 12 16 24

@npayfebot
Copy link
Contributor

npayfebot commented Feb 6, 2026

✅ Changeset detected

Latest commit: fa045c4

@naverpay/commithelper-go package have detected changes.

If no version change is needed, please add skip-detect-change to the label.

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@naverpay/commithelper-go ✨ Minor
powered by: naverpay changeset detect-add actions

@yujeong-jeon yujeong-jeon force-pushed the feature/49 branch 3 times, most recently from 507da95 to 7260b61 Compare February 6, 2026 14:06
@yujeong-jeon
Copy link
Contributor Author

/canary-publish

@npayfebot

This comment was marked as outdated.

@yujeong-jeon
Copy link
Contributor Author

/canary-publish

@npayfebot

This comment was marked as outdated.

@yujeong-jeon
Copy link
Contributor Author

/canary-publish

@npayfebot
Copy link
Contributor

Published Canary Packages

@naverpay/commithelper-go@1.1.0-canary.260206-b614811

@yujeong-jeon
Copy link
Contributor Author

/canary-publish

@npayfebot

This comment was marked as outdated.

@yujeong-jeon
Copy link
Contributor Author

/canary-publish

@npayfebot
Copy link
Contributor

Published Canary Packages

@naverpay/commithelper-go@1.1.0-canary.260206-fa045c4

Copy link
Collaborator

@yceffort-naver yceffort-naver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GO 문법을 리뷰하는 나..

@yujeong-jeon yujeong-jeon marked this pull request as ready for review February 10, 2026 06:08
@yujeong-jeon yujeong-jeon requested a review from a team as a code owner February 10, 2026 06:08
@yujeong-jeon yujeong-jeon merged commit bd5a5d0 into main Feb 10, 2026
3 checks passed
@yujeong-jeon yujeong-jeon deleted the feature/49 branch February 10, 2026 06:09
@yujeong-jeon
Copy link
Contributor Author

그냥 commit-helper도 마저 할게용

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants