From 46b969f28e222429209daf63f545d23540c839ad Mon Sep 17 00:00:00 2001 From: hywznn Date: Thu, 16 Jul 2026 12:03:34 +0900 Subject: [PATCH] =?UTF-8?q?fix(ci):=20Dependabot=20PR=20=ED=95=9C=EA=B8=80?= =?UTF-8?q?=20=EC=A0=9C=EB=AA=A9=20=EA=B2=80=EC=82=AC=20=EC=98=88=EC=99=B8?= =?UTF-8?q?=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #20 --- .github/workflows/pr-conventions.yml | 17 +++++++++++++++-- CONTRIBUTING.md | 1 + docs/DEVELOPMENT_STRATEGY.md | 1 + 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-conventions.yml b/.github/workflows/pr-conventions.yml index 3cda5f7..3767620 100644 --- a/.github/workflows/pr-conventions.yml +++ b/.github/workflows/pr-conventions.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 3 steps: - - name: Validate PR title + - name: Validate Conventional PR title env: PR_TITLE: ${{ github.event.pull_request.title }} run: | @@ -25,8 +25,21 @@ jobs: pattern = r"^(feat|fix|data|docs|test|refactor|chore|experiment|ci|perf|revert)(\([a-z0-9-]+\))?: .+" if not re.fullmatch(pattern, title): - print("PR 제목은 (): <한국어 요약> 형식이어야 합니다.") + print("PR 제목은 (): 형식이어야 합니다.") sys.exit(1) + PY + + - name: Validate Korean summary for human PRs + if: github.event.pull_request.user.login != 'dependabot[bot]' + env: + PR_TITLE: ${{ github.event.pull_request.title }} + run: | + python - <<'PY' + import os + import re + import sys + + title = os.environ["PR_TITLE"] if not re.search(r"[가-힣]", title): print("콜론 뒤 요약에 한국어를 포함해야 합니다.") sys.exit(1) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9af694e..7b453d4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -66,4 +66,5 @@ Conventional Commits를 따릅니다. - 공식자료 변경 시 출처와 확인일 기재 - 개인정보·원본 인터뷰·원본 신분서류 업로드 금지 - 제목은 Commit 형식과 동일하게 작성하고 콜론 뒤에 한국어 포함 +- Dependabot 등 자동화 Bot PR은 Conventional Commit 형식만 검사하고 한글 요약 규칙에서 제외 - 되돌리기 어려운 기술 결정은 `docs/adr`에 ADR 추가 diff --git a/docs/DEVELOPMENT_STRATEGY.md b/docs/DEVELOPMENT_STRATEGY.md index 986c699..1374a77 100644 --- a/docs/DEVELOPMENT_STRATEGY.md +++ b/docs/DEVELOPMENT_STRATEGY.md @@ -71,6 +71,7 @@ fix(server): 만료일 기준일 계산 오류 수정 ### Pull Request - 제목도 Commit 형식과 동일하며 콜론 뒤에 한국어 포함 +- Dependabot 등 자동화 Bot PR은 Conventional Commit 형식만 검사하고 한글 요약 규칙에서 제외 - 500줄 이상 변경은 생성 데이터와 스키마를 제외하고 분리 검토 - API·DB·보안 정책 변경은 영향 범위와 롤백 방식을 작성 - UI 변경은 화면 캡처 또는 Figma 링크 첨부