diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 00000000..76d0d83c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,25 @@ +name: "πŸ› Bug" +description: "버그 이슈" +type: Bug +projects: [ "Team-SoFa/4" ] +body: + - type: textarea + attributes: + label: 버그 λ‚΄μš© + description: 버그 사항에 λŒ€ν•œ μ„€λͺ…을 μž‘μ„±ν•΄ μ£Όμ„Έμš”. + placeholder: μžμ„Ένžˆ μ μ„μˆ˜λ‘ μ’‹μŠ΅λ‹ˆλ‹€! + validations: + required: true + + - type: textarea + attributes: + label: 버그 μž¬ν˜„ 방법 + description: 버그λ₯Ό λ°œμƒμ‹œν‚€λ €λ©΄ μ–΄λ–»κ²Œ ν•΄μ•Ό ν•˜λŠ”μ§€ μ μ–΄μ£Όμ„Έμš”. + placeholder: μžμ„Ένžˆ μ μ„μˆ˜λ‘ μ’‹μŠ΅λ‹ˆλ‹€! + validations: + required: true + + - type: textarea + attributes: + label: μ°Έκ³  자료 + description: μ°Έκ³  μžλ£Œκ°€ μžˆλ‹€λ©΄ μž‘μ„±ν•΄ μ£Όμ„Έμš”. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml new file mode 100644 index 00000000..9d4db2b4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -0,0 +1,25 @@ +name: "✨ Feature" +description: "μƒˆλ‘œμš΄ κΈ°λŠ₯ μΆ”κ°€" +type: "Feature" +projects: [ "Team-SoFa/4" ] +body: + - type: textarea + attributes: + label: 이슈 λ°°κ²½ + description: μƒˆλ‘œμš΄ κΈ°λŠ₯을 λ„μž…ν•˜λŠ” 배경을 μž‘μ„±ν•΄μ£Όμ„Έμš”. + placeholder: μžμ„Ένžˆ μ μ„μˆ˜λ‘ μ’‹μŠ΅λ‹ˆλ‹€! + validations: + required: true + + - type: textarea + attributes: + label: 이슈 λ‚΄μš© + description: μƒˆλ‘œμš΄ κΈ°λŠ₯에 λŒ€ν•œ μ„€λͺ…을 μž‘μ„±ν•΄ μ£Όμ„Έμš”. (κ΅¬ν˜„ 방법/ λ™μž‘ 방식 λ“±) + placeholder: μžμ„Ένžˆ μ μ„μˆ˜λ‘ μ’‹μŠ΅λ‹ˆλ‹€! + validations: + required: true + + - type: textarea + attributes: + label: μ°Έκ³  자료 + description: μ°Έκ³  μžλ£Œκ°€ μžˆλ‹€λ©΄ μž‘μ„±ν•΄ μ£Όμ„Έμš”. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/task.yml b/.github/ISSUE_TEMPLATE/task.yml new file mode 100644 index 00000000..893f242f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/task.yml @@ -0,0 +1,25 @@ +name: "✨ Task" +description: "κ°€μž₯ μ΅œμ†Œν•œμ˜ 양식" +type: "Task" +projects: ["Team-SoFa/4"] +body: + - type: textarea + attributes: + label: 이슈 λ°°κ²½ + description: μž‘μ—… λ‚΄μš© or λ…Όμ˜ λ‚΄μš©μ˜ 배경을 μž‘μ„±ν•΄μ£Όμ„Έμš”. + placeholder: μžμ„Ένžˆ μ μ„μˆ˜λ‘ μ’‹μŠ΅λ‹ˆλ‹€! + validations: + required: true + + - type: textarea + attributes: + label: πŸ“„ μž‘μ—… λ‚΄μš© or λ…Όμ˜ λ‚΄μš© + description: μ„€λͺ…을 μž‘μ„±ν•΄ μ£Όμ„Έμš”. + placeholder: μžμ„Ένžˆ μ μ„μˆ˜λ‘ μ’‹μŠ΅λ‹ˆλ‹€! + validations: + required: true + + - type: textarea + attributes: + label: πŸ™‹πŸ» μ°Έκ³  자료 + description: μ°Έκ³  μžλ£Œκ°€ μžˆλ‹€λ©΄ μž‘μ„±ν•΄ μ£Όμ„Έμš”. \ No newline at end of file diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..2f4db27b --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,6 @@ +## κ΄€λ ¨ 이슈 + +- close #번호 + +## PR μ„€λͺ… + diff --git a/.github/workflows/backend-cd.yml b/.github/workflows/backend-cd.yml index afaaf5b3..fe13f04b 100644 --- a/.github/workflows/backend-cd.yml +++ b/.github/workflows/backend-cd.yml @@ -2,9 +2,6 @@ name: ✨ Linkiving backend CD ✨ on: workflow_dispatch: - push: - branches: - - main pull_request: types: [ closed ] branches: @@ -12,9 +9,7 @@ on: jobs: backend-docker-build-and-push: - if: > - github.event_name == 'push' || - (github.event_name == 'pull_request' && github.event.pull_request.merged == true) + if: (github.event_name == 'pull_request' && github.event.pull_request.merged == true) runs-on: ubuntu-latest steps: diff --git a/build.gradle b/build.gradle index 9bb042e0..07557cbb 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ repositories { } dependencies { -// implementation 'org.springframework.boot:spring-boot-starter-data-jpa' + implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.springframework.boot:spring-boot-starter-web' compileOnly 'org.projectlombok:lombok' @@ -34,12 +34,23 @@ dependencies { testImplementation 'org.springframework.boot:spring-boot-starter-test' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' implementation 'org.springframework.boot:spring-boot-starter-actuator' + + // H2 Database + runtimeOnly 'com.h2database:h2' + + // Swagger + implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.11' + + + // AWS CloudWatch appender + implementation "ca.pjer:logback-awslogs-appender:1.6.0" + } checkstyle { maxWarnings = 0 - configFile = file("${rootDir}/naver-checkstyle-rules.xml") - configProperties = ["suppressionFile": "${rootDir}/naver-checkstyle-suppressions.xml"] + configFile = file("${rootDir}/codestyle/naver-checkstyle-rules.xml") + configProperties = ["suppressionFile": "${rootDir}/codestyle/naver-checkstyle-suppressions.xml"] toolVersion = "8.42" } diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 00000000..a2f74e84 --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,43 @@ + + + + + + + [%thread] [%date] [%level] [%file:%line] - %msg%n + + /aws/linkiving/application + linkiving-server + ap-northeast-2 + 50 + 30000 + 5000 + 30 + ${AWS_ACCESS_KEY_ID} + ${AWS_SECRET_ACCESS_KEY} + + + + + %highlight(%-5level) %date [%thread] %cyan([%C{0} :: %M :: %L]) - %msg%n + + + + + + + + + + + + + + + + + + + + +