From f131133af76f59c5c9c42bfbd06910171860e170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A4=EC=A4=80=EC=88=98?= <99115509+hoheesu@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:12:13 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=91=B7=20Chore:=20main=20/=20develop?= =?UTF-8?q?=20=EB=B8=8C=EB=9E=9C=EC=B9=98=20push=20=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/restrict-push.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/restrict-push.yml diff --git a/.github/workflows/restrict-push.yml b/.github/workflows/restrict-push.yml new file mode 100644 index 0000000..cbf7f85 --- /dev/null +++ b/.github/workflows/restrict-push.yml @@ -0,0 +1,16 @@ +name: Restrict direct pushes + +on: + push: + branches: + - main + - develop + +jobs: + block_direct_push: + runs-on: ubuntu-latest + steps: + - name: Fail if direct push + run: | + echo "❌ Direct push to 'main' or 'develop' branch is not allowed. Please use a pull request." + exit 1 From 3cd2b47ee667dc7812ce932556e373931447ed87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A4=EC=A4=80=EC=88=98?= <99115509+hoheesu@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:53:45 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20github=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/commit-msg | 1 - package.json | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100755 .husky/commit-msg diff --git a/.husky/commit-msg b/.husky/commit-msg deleted file mode 100755 index 965f4a5..0000000 --- a/.husky/commit-msg +++ /dev/null @@ -1 +0,0 @@ -npx gitmoji --hook diff --git a/package.json b/package.json index c5349f8..7d8094e 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,7 @@ "dev": "vite", "build": "tsc -b && vite build", "lint": "eslint .", - "preview": "vite preview", - "prepare": "husky" + "preview": "vite preview" }, "dependencies": { "@tanstack/react-query": "4", @@ -28,7 +27,6 @@ "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-refresh": "^0.4.14", "globals": "^15.12.0", - "husky": "^9.1.7", "typescript": "~5.6.2", "typescript-eslint": "^8.15.0", "vite": "^6.0.1"