-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 645063b
Showing
78 changed files
with
7,410 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
1. git clone https://github.com/Try-AngIe/cms-plus.git | ||
|
||
2. cd cms-plus | ||
|
||
3. git fetch | ||
|
||
4. git checkout -b dev origin/dev | ||
|
||
5. git branch feat/도메인1 | ||
|
||
6. git checkout feat/도메인1 | ||
|
||
7. 작업시작 | ||
|
||
8. git commit -m "[Jira 이슈 ID] 브랜치명(수정 도메인): 구현내용" | ||
|
||
9. 작업끝(모든 커밋 끝) | ||
|
||
10. git push origin feat/도메인1 | ||
|
||
11. git checkout dev | ||
|
||
12. git branch feat/도메인2 | ||
|
||
...이하동일 | ||
|
||
PR 다른 팀원이 승인 완료되면 dev에서 git pull origin dev |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
아래의 코드를 현재 워크스페이스의 .git/hooks/commit-msg 파일(새로 생성)에 입력해주세요. | ||
---------------------------------------------------------------------------------- | ||
|
||
#!/bin/sh | ||
|
||
commit_msg_file=$1 | ||
commit_msg=$(cat "$commit_msg_file") | ||
pattern="^\[.*\] (feat|fix|refactor|style|docs|test|chore|init)\(.*\): .{0,50}$" | ||
|
||
if ! echo "$commit_msg" | grep -qE "$pattern"; then | ||
echo "--------------------------------------------------------------------------------" | ||
echo "-안녕하세요? 김상훈입니다." | ||
echo "-아래의 양식을 지켜주세요." | ||
echo "" | ||
echo "[Jira 이슈 ID] 브랜치명(수정 도메인): 구현내용" | ||
echo "" | ||
echo " (브랜치 목록: feat / fix / refactor / style / docs / test / chore / init)" | ||
echo "" | ||
echo "-예시는 다음과 같습니다." | ||
echo "" | ||
echo "[VEDG-1] feat(\$payment): 청구서 취소 기능 구현" | ||
echo "[EEFG-38] fix(\$member): 로그인 요청시 발생한 AuthenticationPrincipal NPE 수정" | ||
echo "[EEFG-38] style(\$member): LoginService 내 코드 줄바꿈 변경" | ||
echo "[QEFO-1] test(\$payment): 청구서 취소시 청구서 상태 변경 확인 테스트 구현" | ||
echo "--------------------------------------------------------------------------------" | ||
exit 1 | ||
fi | ||
|
||
exit 0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: "🅱 Build" | ||
about: 'Build 작업 사항을 입력해주세요.' | ||
title: '' | ||
labels: 'build' | ||
assignees: '' | ||
--- | ||
|
||
## Description | ||
- 설명을 작성하세요. | ||
|
||
## Todo | ||
- [ ] Todo | ||
|
||
## ETC |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: "🔄 CI" | ||
about: 'CI 작업 사항을 입력해주세요.' | ||
title: '' | ||
labels: 'ci' | ||
assignees: '' | ||
--- | ||
|
||
## Description | ||
- 설명을 작성하세요. | ||
|
||
## Todo | ||
- [ ] Todo | ||
|
||
## ETC |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: "📂 Docs" | ||
about: 'Docs 작업 사항을 입력해주세요.' | ||
title: '' | ||
labels: 'docs' | ||
assignees: '' | ||
--- | ||
|
||
## Description | ||
- 설명을 작성하세요. | ||
|
||
## Todo | ||
- [ ] Todo | ||
|
||
## ETC |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: "✅ Feat" | ||
about: 'Feat 작업 사항을 입력해주세요.' | ||
title: '' | ||
labels: 'feat' | ||
assignees: '' | ||
--- | ||
|
||
## Description | ||
- 설명을 작성하세요. | ||
|
||
## Todo | ||
- [ ] Todo | ||
|
||
## ETC |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: "🔧 Fix" | ||
about: Fix 작업 사항을 입력해주세요. | ||
title: '' | ||
labels: 'fix' | ||
assignees: '' | ||
--- | ||
|
||
## Description | ||
- 설명을 작성하세요. | ||
|
||
## Todo | ||
- [ ] Todo | ||
|
||
## ETC |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: "📈 Perf" | ||
about: 'Perf 작업 사항을 입력해주세요.' | ||
title: '' | ||
labels: 'perf' | ||
assignees: '' | ||
--- | ||
|
||
## Description | ||
- 설명을 작성하세요. | ||
|
||
## Todo | ||
- [ ] Todo | ||
|
||
## ETC |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: "📝 Refactor" | ||
about: 'Refactor 작업 사항을 입력해주세요.' | ||
title: '' | ||
labels: 'refactor' | ||
assignees: '' | ||
--- | ||
|
||
## Description | ||
- 설명을 작성하세요. | ||
|
||
## Todo | ||
- [ ] Todo | ||
|
||
## ETC |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: "✨ Style" | ||
about: 'Style 작업 사항을 입력해주세요.' | ||
title: '' | ||
labels: 'style' | ||
assignees: '' | ||
--- | ||
|
||
## Description | ||
- 설명을 작성하세요. | ||
|
||
## Todo | ||
- [ ] Todo | ||
|
||
## ETC |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: "📖 Test" | ||
about: 'Test 작업 사항을 입력해주세요.' | ||
title: '' | ||
labels: 'test' | ||
assignees: '' | ||
--- | ||
|
||
## Description | ||
- 설명을 작성하세요. | ||
|
||
## Todo | ||
- [ ] Todo | ||
|
||
## ETC |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## TYPE | ||
- [ ] ✅ Feat | ||
- [ ] 🔧 Fix | ||
- [ ] ✨ Style | ||
- [ ] 📖 Test | ||
- [ ] 📝 Refactor | ||
- [ ] 📈 Perf | ||
- [ ] 📂 Docs | ||
- [ ] 🅱 Build | ||
- [ ] 🔄 CI | ||
|
||
## DESCRIPTION | ||
- | ||
|
||
## ISSUE | ||
- | ||
|
||
## ETC |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: BE CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- dev | ||
types: [ opened ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Grant Permission | ||
run: chmod +x server/gradlew | ||
|
||
- name: Build Gradle | ||
working-directory: server | ||
run: ./gradlew clean build -x test |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Dev Trigger | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev #dev브랜치만 | ||
|
||
jobs: | ||
dev-trigger: | ||
name: Transition Issue | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login | ||
uses: atlassian/gajira-login@master | ||
env: | ||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
|
||
- name: Find Issue Key | ||
uses: atlassian/gajira-find-issue-key@master | ||
id: issue-key | ||
with: | ||
from: commits | ||
|
||
- name: Issue Transitioned | ||
if: steps.issue-key.outputs.issue != '' | ||
uses: atlassian/gajira-transition@master | ||
with: | ||
issue: ${{ steps.issue-key.outputs.issue }} | ||
transition: "검토 완료" #Jira 보드의 워크플로 관리에 있는 이름을 적어야함 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Feat Trigger | ||
|
||
on: | ||
push: | ||
branches: | ||
- feat/** #feat브랜치만 | ||
|
||
jobs: | ||
feat-trigger: | ||
name: Transition Issue | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login | ||
uses: atlassian/gajira-login@master | ||
env: | ||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
|
||
- name: Find Issue Key | ||
uses: atlassian/gajira-find-issue-key@master | ||
id: issue-key | ||
with: | ||
from: commits | ||
|
||
- name: Issue Transitioned | ||
if: steps.issue-key.outputs.issue != '' | ||
uses: atlassian/gajira-transition@master | ||
with: | ||
issue: ${{ steps.issue-key.outputs.issue }} | ||
transition: "검토 중" #Jira 보드의 워크플로 관리에 있는 이름을 적어야함 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: FE CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- dev | ||
types: [ opened ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# 캐시 액션 설치 | ||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('client/package-lock.json') }} | ||
|
||
# 캐싱 여부 출력 | ||
- if: steps.npm-cache.outputs.cache-hit == 'true' | ||
run: echo 'npm cache hit!' | ||
- if: steps.npm-cache.outputs.cache-hit != 'true' | ||
run: echo 'npm cache missed!' | ||
|
||
# 캐시가 없거나 다른 경우에만 모듈 설치 -> 배포 시간 단축 | ||
- name: Install Dependencies | ||
working-directory: client | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: npm install | ||
|
||
- name: Build Npm | ||
working-directory: client | ||
run: npm run build |
Oops, something went wrong.