Skip to content

Commit

Permalink
add lefthook and more
Browse files Browse the repository at this point in the history
  • Loading branch information
kawamataryo committed Feb 28, 2024
1 parent d02fb38 commit 3ec0282
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ Ibaraki.devのもくもく会で使うDiscord Bot。
- [x] modalの送信で、formatした投稿内容をdiscordに送信
- [x] command名をmokuからcheckinに変更
- [x] profile欄のデフォルト値をD1から取得
- [ ] huskyかlefthookでcommit時にcheckを実行する
- [x] huskyかlefthookでcommit時にcheckを実行する
- [ ] zodでのrequestのvalidationの追加
- [ ] testの追加
- [x] mainへのpushでCloudflareへデプロイする
- [x] Ibaraki-devのorganizationを作成
- [ ] READMEに開発方法を追記
- [ ] Zennに記事を執筆
- [ ] 時報のためのcronを追加
- 土日の指定時に常に動かして、DBにその日のcheckinが登録されている場合は、通知するとかで良いかも
- [ ] mokumoku-startコマンドの追加
- [ ] コマンド実行でスケジュールと/checkinコマンドの説明を投稿
- [ ] 15:00と17:50の時報機能
- 土日の指定時に常に動かして、DBにその日のcheckinが登録されている場合は、通知するとかで良いかも
5 changes: 5 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pre-commit:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: npx biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index --again
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"discord-interactions": "^3.4.0",
"drizzle-orm": "^0.29.4",
"hono": "^4.0.5",
"lefthook": "^1.6.3",
"zod": "^3.22.4"
},
"devDependencies": {
Expand Down

0 comments on commit 3ec0282

Please sign in to comment.