Skip to content

Commit

Permalink
Merge branch 'dev' into feature/design-system
Browse files Browse the repository at this point in the history
  • Loading branch information
dahyeo-n authored Dec 18, 2024
2 parents 4f5c277 + 5d424d2 commit 8448053
Show file tree
Hide file tree
Showing 13 changed files with 533 additions and 30 deletions.
12 changes: 12 additions & 0 deletions .github/pull_request_template
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
🚨 제목: [TASK-ID] 라벨: 기능명
ex. [TASK-11] feat: 로그인 페이지 구현 (확인 후 지워주세요)

## 📝 작업 내용

> 이번 PR에서 작업한 내용과 이유를 간략히 설명해주세요 (이미지 첨부 가능)

## 📸 스크린샷 (선택)

## 💬 리뷰 요구사항 (선택)

> 리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요 (ex. 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?)
57 changes: 57 additions & 0 deletions .github/workflows/auto_labeling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Auto Label PR

on:
pull_request:
types: [opened, edited, synchronize]

jobs:
auto-label:
runs-on: ubuntu-latest

steps:
# PR 이벤트 트리거
- name: Checkout code
uses: actions/checkout@v3

# 커밋 메시지 키워드에 따라 라벨 추가
- name: Add labels based on commit messages
uses: actions/github-script@v6
with:
script: |
const commitKeywords = {
feat: 'feature',
fix: 'bug',
chore: 'chore',
docs: 'documentation',
style: 'style',
refactor: 'refactor',
test: 'test',
perf: 'performance',
};
const { context } = require('@actions/github');
const { commits } = context.payload.pull_request;
// 커밋 메시지에서 키워드 추출
const labelsToAdd = new Set();
commits.forEach(commit => {
const message = commit.commit.message;
const keyword = message.split(':')[0].trim();
if (commitKeywords[keyword]) {
labelsToAdd.add(commitKeywords[keyword]);
}
});
// 라벨 추가 요청
if (labelsToAdd.size > 0) {
const response = await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
labels: [...labelsToAdd],
});
console.log('Labels added:', response.data);
} else {
console.log('No matching labels found for commits.');
}
71 changes: 71 additions & 0 deletions .github/workflows/lint-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Lint, Build, and Test

on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main", "dev"]

jobs:
lint-build-test:
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache Node Modules
uses: actions/cache@v4
with:
path: |
~/.pnpm-store
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
run: pnpm install

- name: Run Lint
run: pnpm lint

- name: Prettier Check
run: pnpm prettier --check .

- name: Build
if: success()
run: pnpm build

- name: Run Tests
if: success()
run: pnpm test -- --ci

- name: Notify Discord on Failure
if: failure()
uses: johnnyhuy/actions-discord-git-webhook@main
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
args: |
🚨 **Lint/Build/Test Workflow 실패** 🚨
**Repository**: ${{ github.repository }}
**Branch**: ${{ github.ref_name }}
**Commit**: [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
**Author**: ${{ github.actor }}
**Job**: ${{ github.job }}
❗ 자세한 내용은 [GitHub Actions Logs](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})를 확인하세요.
---
🕒 **Timestamp**: ${{ github.event.head_commit.timestamp }}
40 changes: 13 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,22 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
<div align="center">
<h1>Momentia (모멘티아)</h1>
<img width="160" alt="momentia-logo" src="https://github.com/user-attachments/assets/be9da36c-77be-49f7-9172-ad51cb6430f3" />
</div>

## Getting Started
## 배포 주소

First, run the development server:
*** 추후 추가 예정 ***

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
## 0. 프로젝트 소개

This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
> 개발 기간: 2024. 12. 5 ~
## Learn More
모멘티아는 '**무명 예술가를 위한 작품 전시/판매 플랫폼**'입니다.

To learn more about Next.js, take a look at the following resources:
## 폴더 구조

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
*** 깔끔히 정리해서 추가할 예정 ***

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
```bash

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
```
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,16 @@
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-storybook": "^0.11.1",
"msw": "^2.7.0",
"postcss": "^8.4.49",
"prettier": "^3.4.2",
"storybook": "^8.4.7",
"tailwindcss": "^3.4.16",
"typescript": "^5.7.2"
},
"msw": {
"workerDirectory": [
"public"
]
}
}
Loading

0 comments on commit 8448053

Please sign in to comment.