fix: commitlint body 길이 제한 dependabot 예외 처리 - #37
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 배경 및 개요
dependabot이 올리는 PR들의
commitlint체크가 계속 실패하고 있었어요. 원인은 dependabot이 자동 생성하는 커밋 본문의 "Commits" 링크 줄(패키지 changelog URL)이@commitlint/config-conventional의body-max-line-length(기본 100자) 규칙에 걸리기 때문입니다. 패키지 스코프/이름이 길수록(e.g.@tanstack/react-query) URL이 길어져서 쉽게 초과합니다.이 저장소의 커밋 컨벤션(
AGENTS.md)상 사람이 작성하는 커밋은 애초에 본문 없이 한 줄 제목만 쓰므로, 이 규칙은 사실상 dependabot 커밋에만 영향을 주고 있었어요.📃 작업내용
commitlint.config.js에body-max-line-length규칙 비활성화 추가 (URL은 줄바꿈이 불가능하고, 사람 커밋은 본문이 없어 영향 없음)commitlint재검증 → 통과 확인🙋♂️ 리뷰노트
subject-case처럼 규칙 자체를 끄는 방식을 택했습니다. 줄 길이 제한을 늘리는 방식도 고려했지만, 패키지명 길이에 따라 URL 길이가 매번 달라져서 임계값을 늘려도 근본적으로 재발할 수 있어 규칙을 끄는 쪽이 더 견고하다고 판단했습니다.✅ PR 체크리스트
.env,노션,README)"API 개발 완료됐어요","환경값 추가되었어요")🎸 기타
이 PR이 머지되면 기존에 열려있는 dependabot PR들(#31~#36)의
commitlint체크는 자동으로 다시 통과하지 않고, 각 PR에서 dependabot이 재푸시(rebase)해야 최신 develop 기준으로 다시 체크가 돌아갑니다. 필요하면 각 PR에@dependabot rebase를 코멘트해서 재트리거할 수 있어요.🤖 Generated with Claude Code