forked from DangleDangle/dangledangle-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'DangleDangle:develop' into develop
- Loading branch information
Showing
1,081 changed files
with
33,679 additions
and
3,430 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,50 @@ | ||
module.exports = { | ||
types: [ | ||
{ value: 'โจ feat', name: 'โจ feat:\t์๋ก์ด ๊ธฐ๋ฅ ์ถ๊ฐ' }, | ||
{ value: '๐จ fix', name: '๐จ fix:\t๋ฒ๊ทธ, ์ค๋ฅ ์์ ' }, | ||
{ | ||
value: '๐ update', | ||
name: '๐ update: \t๋ก์ง ๋๋ api ์์ (๊ธฐํ ๋ณ๊ฒฝ์ผ๋ก ์ธํ feat ์ปค๋ฐ ์ดํ ์์ ๋๋ ๊ฒฝ์ฐ)' | ||
}, | ||
{ | ||
value: '๐ค refactor', | ||
name: '๐ค refactor:\t๋ฆฌํฉํ ๋ง(์๋ก์ด ๊ธฐ๋ฅ ์ถ๊ฐ๋์ง ์์)' | ||
}, | ||
{ value: '๐ docs', name: '๐ docs:\t๋ฌธ์ ์ถ๊ฐ ํน์ ์ ๋ฐ์ดํธ' }, | ||
{ value: '๐ช create', name: '๐ช create:\t์๋ก์ด ํ์ผ ์์ฑ' }, | ||
{ value: '๐ฅ remove', name: '๐ฅ remove:\tํ์ผ ์ญ์ ๋๋ ํ์ผ๋ช ๋ณ๊ฒฝ' }, | ||
{ | ||
value: '๐ style', | ||
name: '๐ style:\t์ฝ๋ ํฌ๋งทํ (prettier ์ ์ฉ, ๊ณต๋ฐฑ ์ถ๊ฐ/์ ๊ฑฐ, ๋ณ์๋ช ๋ณ๊ฒฝ ๋ฑ)' | ||
}, | ||
{ | ||
value: 'โ test', | ||
name: 'โ test:\tํ ์คํธ ์ผ์ด์ค ๊ด๋ จ ์ฝ๋ ๋ณ๊ฒฝ' | ||
}, | ||
{ | ||
value: '๐ chore', | ||
name: '๐ chore:\t๊ธฐํ ๋ณ๊ฒฝ ์ฌํญ (๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ ๋ฐ์ดํธ, ์ฃผ์ ์ถ๊ฐ/์ ๊ฑฐ ๋ฑ)' | ||
}, | ||
{ | ||
value: '๐ฆ build', | ||
name: '๐ฆ build:\t๋น๋ ๊ด๋ จ ํ์ผ ์์ (CI/CD ์ค์ ๋ฑ)' | ||
} | ||
], | ||
scopes: [{ name: '*' }], | ||
allowCustomScopes: true, | ||
skipQuestions: ['scope', 'body', 'breaking', 'footer'], | ||
allowBreakingChanges: ['feat', 'fix'], | ||
usePreparedCommit: false, | ||
subjectLimit: 100, | ||
messages: { | ||
type: '์ปค๋ฐ์ ์ ํ(ํ๊ทธ)์ ์ ํํ์ธ์:', | ||
scope: '\n์ด ๋ณ๊ฒฝ์ ๋ฒ์(SCOPE)๋ฅผ ์์ฑํด์ฃผ์ธ์ (์ ํ์ฌํญ):', | ||
customScope: '์ด ๋ฒ์(SCOPE)๋ฅผ ์์ฑํด์ฃผ์ธ์ :', | ||
subject: '๋ณ๊ฒฝ์ ๋ํ ๊ฐ๊ฒฐํ๊ฒ, ๋ช ๋ นํ์ผ๋ก ์ค๋ช ์ ์์ฑํด์ฃผ์ธ์:\n', | ||
body: '๋ณ๊ฒฝ์ ๋ํ ์์ธํ ์ค๋ช ์ ์์ฑํ์ธ์ "|"๋ฅผ ์ฌ์ฉํ์ฌ ์ค๋ฐ๊ฟ ๊ฐ๋ฅํฉ๋๋ค (์ ํ์ฌํญ):\n', | ||
breaking: '๋ชจ๋ BREAKING CHANGES๋ฅผ ๋์ดํ์ธ์ (์ ํ์ฌํญ):\n', | ||
footer: | ||
'์ด ๋ณ๊ฒฝ์ ์ํด ํด๊ฒฐ๋ ์ด์๋ฅผ ๋์ดํ์ธ์ ex): #31, #34 (์ ํ์ฌํญ):\n', | ||
confirmCommit: '์์ ์ปค๋ฐ์ ์งํํ์๊ฒ ์ต๋๊น?' | ||
} | ||
}; |
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
{ | ||
"extends": "next/core-web-vitals", | ||
"extends": ["next/core-web-vitals", "prettier"], | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"no-var": "error", | ||
"no-multiple-empty-lines": "error", | ||
"eqeqeq": "error", | ||
"dot-notation": "error", | ||
"no-unused-vars": "error" | ||
"no-var": "warn", | ||
"no-multiple-empty-lines": "warn", | ||
"eqeqeq": "warn", | ||
"dot-notation": "warn", | ||
"no-unused-vars": "warn" | ||
} | ||
} |
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,57 @@ | ||
--- | ||
name: RFC | ||
about: ๊ธฐ์ ์คํ ๋ณ๊ฒฝ, ์ํคํ ์ณ ๋ณ๊ฒฝ, ์ปจ๋ฒค์ ๋ณ๊ฒฝ ๋ฑ ํ๋ก์ ํธ์์ ๊ธฐ์ ์ ์ผ๋ก ๋ ผ์ํ ์ฌํญ์ด ์์๋ RFC ๋ฌธ์๋ก ์์ฑํด์ฃผ์ธ์ | ||
title: 'RFC: ' | ||
labels: ๋ ผ์์ฌํญ๐ฌ | ||
assignees: "" | ||
--- | ||
|
||
# Title of RFC | ||
|
||
| ์ํ | (Proposed / Accepted / Implemented / Obsolete) | | ||
:----------- |:---------------------------------------------------- | | ||
| **RFC #** | [NNN](https://github.com/YAPP-Github/22nd-Web-Team-2-Web/pull/NNN) (update when you have community PR #)| | ||
| **์ ์** | @Github Id | | ||
| **์ ๋ฐ์ดํธ** | YYYY-MM-DD | | ||
|
||
## ๋ชฉ์ | ||
|
||
๋ฌด์์ ํ๊ณ ์๊ณ ์ ํฉ๋๊น? | ||
์ด๊ฒ์ด ์ด๋ค ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์์๊น์? | ||
๋ชฉํ์ ๋น๋ชฉํ๋ ๋ฌด์์ ๋๊น? ๊ฐ๋ตํ๊ฒ ์์ฑํ๊ณ ์๋์ ์์ธํ ์ค๋ช ํด ์ฃผ์ญ์์ค. | ||
|
||
## ๋๊ธฐ | ||
|
||
์ ์ด๊ฒ์ด ํด๊ฒฐํด์ผ ํ ๊ฐ์น ์๋ ๋ฌธ์ ์ ๋๊น? ํ์ํ ๋ฐฐ๊ฒฝ ์ ๋ณด, ์ด ๋์์ธ์ด ์ด๋ป๊ฒ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋์ง ๋ณด์ฌ์ค ์ ์์ต๋๊น? | ||
์ด๋ค ํํธ์์ ๋ฌธ์ ์ ์ํฅ์ ๋ฐ์ต๋๊น? ์ ๊ทธ๊ฒ์ด ๋ฌธ์ ์ ๋๊น? ์ด๋ค ๊ด๋ จ๋ ์ผ์ด ์์ต๋๊น? | ||
|
||
## ์์ธ ๋ด์ฉ | ||
|
||
RFC์ ๋๋ถ๋ถ์ ์ฐจ์งํ๋ ํญ๋ชฉ์ ๋๋ค. ํ๋ก์ ํธ์ ์ฐธ์ฌํ ์ฌ์ฉ์๊ฐ ์ดํดํ ์ ์๋๋ก ์ค๊ณ๋ฅผ ์์ธํ ์ค๋ช ํฉ๋๋ค. | ||
|
||
|
||
## ์ฌ์ฉ์ ์ด์ | ||
|
||
์ฌ์ฉ์(๋๋ ๊ธฐํ ๊ธฐ์ฌ์)๋ ์ด ์์ ์ ํตํด ์ด๋ค ์ด์ ์ ์ป์ ์ ์์ต๋๊น? ์ด๋ค ๊ฒ์ด ์์๊น์ | ||
๋ฐํ ๋ ธํธ๋ ๋ธ๋ก๊ทธ ๊ฒ์๋ฌผ์ ํค๋๋ผ์ธ์ด ์์ต๋๊น? | ||
|
||
|
||
## ๊ณ ๋ ค๋ ๋์๋ค | ||
์ ์ํ ๋์๊ณผ์ ์๋์ ์ธ ์ฅ์ ์ ๋ ผ์ํด์ผ ํฉ๋๋ค. | ||
|
||
|
||
## ๋จ์ | ||
|
||
์ ์ฐ๋ฆฌ๋ ์ด๊ฒ์ ํ์ง ๋ง์์ผ ํ๋์ง? | ||
|
||
- ์ฝ๋ ํฌ๊ธฐ ๋ฐ ๋ณต์ก์ฑ ์ธก๋ฉด์์ ๊ตฌํ ๋น์ฉ | ||
- ๋ฌ๋์ปค๋ธ๊ฐ ํฐ์ง? | ||
- ์ด ๊ธฐ๋ฅ์ ๋ค๋ฅธ ๊ธฐ์กด ๊ธฐ๋ฅ๊ณผ ํตํฉ ํ ์ ์๋์ง? | ||
|
||
ํด๋น ๊ธฐ์ ์ ์ ํํ๋๋ฐ์ ์ด๋ค ํธ๋ ์ด๋ ์คํ๊ฐ ์์์ง ์๊ฐํด ๋ด ์๋ค. | ||
|
||
|
||
## ํด๊ฒฐ๋์ง ์์ ์ง๋ฌธ | ||
|
||
์ ํ์ฌํญ์ด์ง๋ง, ์ฒซ ๋ฒ์งธ ์ด์์ ์ฌ์ฉํ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค. ๋์์ธ์ ์ด๋ค ๋ถ๋ถ์ด ์ฌ์ ํ ํด๊ฒฐ๋์ง ์๋์? | ||
|
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,28 @@ | ||
name: Dispatch to Forked Repository | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- '.*\/ignore-action$' | ||
|
||
jobs: | ||
print: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Get the refs | ||
run: echo "[log] ref is ${{github.ref}}" | ||
- name: Get the branch name | ||
run: echo "[log] Branch name is ${{github.ref_name}}" | ||
|
||
dispatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Repository Dispatch | ||
run: | | ||
curl -L \ | ||
-X POST https://api.github.com/repos/${{vars.DEPLOY_REPO_PATH}}/dispatches \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.DEPLOY_REPO_ACCESS_TOKEN}}" \ | ||
-d '{"event_type": "sync", "client_payload": {"target_branch": "${{github.ref_name}}"}}' |
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,7 @@ | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
# Add the following | ||
yarn lint-staged | ||
|
||
# If using npm, remove above and uncomment below | ||
# npm run lint-staged |
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,37 @@ | ||
#!/bin/sh | ||
|
||
FORBIDDEN_HTTPS_URL="https://github.com/YAPP-Github/22nd-Web-Team-2-Web" # insert your remote url (https) | ||
FORBIDDEN_SSH_URL="[email protected]:YAPP-Github/22nd-Web-Team-2-Web" # insert your remote url (ssh) | ||
FORBIDDEN_REF=("refs/heads/main" "refs/heads/develop" "refs/heads/feat/YW2-4") # ๋ฉ์ธ, ๋๋ฒจ๋กญ์ ํธ์ ๊ธ์ง | ||
|
||
|
||
|
||
|
||
remote="$1" # origin | ||
url="$2" # https://github.com/YAPP-Github/22nd-Web-Team-2-Web | ||
if [ "$url" != "$FORBIDDEN_HTTPS_URL" -a "$url" != "$FORBIDDEN_SSH_URL" ] | ||
then | ||
exit 0 # Forked Project ์์๋ ์ ํํ์ง ์์ | ||
fi | ||
|
||
|
||
|
||
|
||
|
||
while read local_ref local_sha remote_ref remote_sha | ||
do | ||
for forbidden_ref in "${FORBIDDEN_REF[@]}" | ||
|
||
do | ||
# echo "์ด๋ค๊ฐ์ ๊ฐ๋๋, - local $local_ref, $remote_ref, $remote_sha" | ||
# echo "๊ธ์งRef : $forbidden_ref" | ||
if [ "$remote_ref" = "$forbidden_ref" ] | ||
then | ||
echo "DO NOT PUSH to $remote_ref" | ||
exit 1 | ||
fi | ||
done | ||
done | ||
|
||
exit | ||
|
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,20 @@ | ||
COMMIT_MSG_FILE=$1 | ||
BEFORE_FIRST_LINE=$(head -n1 $COMMIT_MSG_FILE) | ||
|
||
# echo "์์ฑ์ ์ฒซ์งธ์ค ํ์ธ :: $BEFORE_FIRST_LINE" | ||
|
||
exec < /dev/tty && yarn cz --hook || true | ||
|
||
|
||
AFTER_FIRST_LINE=$(head -n1 $COMMIT_MSG_FILE) | ||
|
||
# echo "์์ฑํ ์ฒซ์งธ์ค ํ์ธ :: $AFTER_FIRST_LINE" | ||
|
||
if [ -z "$AFTER_FIRST_LINE" ] | ||
then | ||
echo "์ปค๋ฐ ๋ฉ์์ง๋ฅผ ์ ๋ ฅํ๋ ๋์ค ์๋ฌ๊ฐ ๋ฐ์ํ์ต๋๋ค" | ||
exit 1 | ||
else | ||
echo "์ปค๋ฐ ๋ฉ์์ง ์์ฑ ์ฑ๊ณต" | ||
exit 0 | ||
fi |
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,13 @@ | ||
module.exports = { | ||
// Type check TypeScript files | ||
'**/*.(ts|tsx)': () => 'yarn tsc --noEmit', | ||
|
||
// Lint & Prettify TS and JS files | ||
'**/*.(ts|tsx|js)': filenames => [ | ||
`yarn eslint ${filenames.join(' ')}`, | ||
`yarn prettier --write ${filenames.join(' ')}` | ||
], | ||
|
||
// Prettify only Markdown and JSON files | ||
'**/*.(md|json)': filenames => `yarn prettier --write ${filenames.join(' ')}` | ||
}; |
Oops, something went wrong.