Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*]
end_of_line = lf

[*.{bat,cmd}]
end_of_line = crlf
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
35 changes: 1 addition & 34 deletions .githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,4 @@ if grep -qE '^\[[A-Za-z]+\]' "$MSG_FILE"; then
exit 1
fi

# Allow merge/revert/fixup/squash commits without JIRA key
if grep -qE '^(Merge|Revert|fixup!|squash!)' "$MSG_FILE"; then
exit 0
fi

if ! grep -qiE '(^|[^A-Z0-9])PB-[0-9]+([^A-Z0-9]|$)' "$MSG_FILE"; then
BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "")
# 브랜치명에 `pb-81`처럼 소문자로 들어온 케이스도 허용한다.
JIRA=$(echo "$BRANCH" | grep -oiE 'pb-[0-9]+' | head -n1 | tr '[:lower:]' '[:upper:]')
if [ -n "$JIRA" ]; then
TMP_FILE=$(mktemp)
FIRST_LINE=$(head -n 1 "$MSG_FILE")
REST_LINES=$(tail -n +2 "$MSG_FILE")
{
TYPE=$(echo "$FIRST_LINE" | sed -nE 's/^([a-zA-Z]+):.*/\1/p')
SUBJECT=$(echo "$FIRST_LINE" | sed -E 's/^[a-zA-Z]+:[[:space:]]*//')
if [ -n "$TYPE" ]; then
printf "%s: %s %s\n" "$TYPE" "$JIRA" "$SUBJECT"
else
printf "%s %s\n" "$JIRA" "$FIRST_LINE"
fi
printf "%s\n" "$REST_LINES"
} > "$TMP_FILE"
mv "$TMP_FILE" "$MSG_FILE"
exit 0
fi
fi

if grep -qiE '(^|[^A-Z0-9])PB-[0-9]+([^A-Z0-9]|$)' "$MSG_FILE"; then
exit 0
fi

echo "JIRA key (e.g., PB-123) is required in commit messages."
exit 1
exit 0
31 changes: 0 additions & 31 deletions .githooks/prepare-commit-msg

This file was deleted.

9 changes: 0 additions & 9 deletions .githooks/prepare-commit-msg.cmd

This file was deleted.

13 changes: 2 additions & 11 deletions .github/PULL_REQUEST_TEMPLATE/bugfix.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# 🐛 Bugfix PR

## 🔗 Jira Issue (필수)
- Key: **PB-**
- Link: https://parkjaehong.atlassian.net/browse/PB-

> PR 제목: `PB-123 <짧은 요약>`
> 브랜치: `PB-123/<slug>`

---

### 🔒 Close Issue (필수)
- GitHub: Closes #
## 🔗 GitHub Issue (필수)
- Closes #

---

Expand Down
13 changes: 2 additions & 11 deletions .github/PULL_REQUEST_TEMPLATE/chore.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# 🧰 Chore PR

## 🔗 Jira Issue (필수)
- Key: **PB-**
- Link: https://parkjaehong.atlassian.net/browse/PB-

> PR 제목: `PB-123 Chore: <짧은 요약>`
> 브랜치: `PB-123/chore-<slug>`

---

### 🔒 Close Issue (필수)
- GitHub: Closes #
## 🔗 GitHub Issue (필수)
- Closes #

---

Expand Down
13 changes: 2 additions & 11 deletions .github/PULL_REQUEST_TEMPLATE/docs.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# 📝 Docs PR

## 🔗 Jira Issue (필수)
- Key: **PB-**
- Link: https://parkjaehong.atlassian.net/browse/PB-

> PR 제목: `PB-123 Docs: <짧은 요약>`
> 브랜치: `PB-123/docs-<slug>`

---

### 🔒 Close Issue (필수)
- GitHub: Closes #
## 🔗 GitHub Issue (필수)
- Closes #

---

Expand Down
2 changes: 0 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# ✨ Feature PR

## 🔗 이슈 링크 (필수)
- Jira: https://parkjaehong.atlassian.net/browse/PB-
- GitHub: Related # (필수)
- GitHub: Closes # (Final PR만)

> PR 제목: `PB-123 <짧은 요약>`

---

Expand Down
14 changes: 2 additions & 12 deletions .github/PULL_REQUEST_TEMPLATE/refactor.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
# 🧹 Refactor PR

## 🔗 Jira Issue (필수)
- Key: **PB-**
- Link: https://parkjaehong.atlassian.net/browse/PB-

> PR 제목: `PB-123 <짧은 요약>`
> 브랜치: `PB-123/<slug>`


---

### 🔒 Close Issue (필수)
- GitHub: Closes #
## 🔗 GitHub Issue (필수)
- Closes #

---

Expand Down
2 changes: 0 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE/test.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# 🧪 Test PR

## 🔗 이슈 링크 (필수)
- Jira: https://parkjaehong.atlassian.net/browse/PB-
- GitHub: Related # (필수)
- GitHub: Closes # (Final PR만)

> PR 제목: `PB-123 Test: <짧은 요약>`

---

Expand Down
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

PR을 올리기 전에 다음 사항을 확인하세요:

- [ ] 브랜치명이 컨벤션을 따르는가? (`feature/`, `bugfix/`, `refactor/`)
- [ ] Jira 이슈 키가 제목에 포함되어 있는가? (예: `[Feat] TES-123: ...`)
- [ ] 브랜치명이 컨벤션을 따르는가? (`feature/`, `bugfix/`, `refactor/`, `chore/`, `docs/`, `test/`)
- [ ] 본문에 관련 GitHub 이슈가 연결되어 있는가? (예: `Closes #123`, `Related #123`)
- [ ] 로컬에서 빌드 및 테스트가 통과하는가?
- [ ] 코드 리뷰어를 지정했는가?
- [ ] 관련 문서를 업데이트했는가? (필요 시)
Expand Down
118 changes: 0 additions & 118 deletions .github/workflows/jira-sync-put.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/jira-sync.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ front/public/firebase-config.js
.idea/
.vscode/
*.iml

/bin/
Loading
Loading