Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: bun を追加 #434

Merged
merged 2 commits into from
Jun 20, 2024
Merged

ci: bun を追加 #434

merged 2 commits into from
Jun 20, 2024

Conversation

tatsutakein
Copy link
Member

@tatsutakein tatsutakein commented Jun 20, 2024

Issue

概要

bun を追加します。

レビュー観点

レビューレベル

  • Lv0: まったく見ないで Approve する
  • Lv1: ぱっとみて違和感がないかチェックして Approve する
  • Lv2: 仕様レベルまで理解して、仕様通りに動くかある程度検証して Approve する
  • Lv3: 実際に環境で動作確認したうえで Approve する

レビュー優先度

  • すぐに見てもらいたい ( hotfix など ) 🚀
  • 今日中に見てもらいたい 🚗
  • 今日〜明日中で見てもらいたい 🚶
  • 数日以内で見てもらいたい 🐢

参考リンク

スクリーンショット

Before After

Summary by CodeRabbit

  • 新機能

    • コミットメッセージのリンティングを設定するためのcommitlint.config.cjsファイルを追加しました。
    • Pre-commitおよびPre-pushフックの設定を含むlefthook.ymlファイルを追加しました。
  • 更新

    • .tool-versionsファイルでbunrubyのバージョンを変更しました。
    • package.jsonにプロジェクトのメタデータおよびスクリプトを追加しました。
    • bootstrap.shスクリプトを更新し、bunlefthookのインストールチェックを追加しました。
  • メンテナンス

    • .gitignoreファイルにnode_modulesを追加しました。

@tatsutakein tatsutakein requested a review from a team as a code owner June 20, 2024 12:28
Copy link

coderabbitai bot commented Jun 20, 2024

ウォークスルー

この変更概要では、「.gitignore」に「node_modules」を追加して無視するようにしたり、ツール「bun」や「ruby」のバージョンを更新したり、コミットメッセージのリント設定を導入する新しいファイルを追加しています。さらに、新しいスクリプトを実行するフックやインストールチェックを追加し、プロジェクトの設定を改善しました。

変更点

ファイル 変更の概要
.gitignore node_modules を無視する行を追加
.tool-versions bunruby のバージョンを変更
commitlint.config.cjs @commitlint/config-conventional を拡張する設定を新規追加
lefthook.yml プレコミットとプレプッシュのフック設定を追加
package.json プロジェクトのメタデータを追加
tool/bootstrap.sh インストールチェックとメッセージを追加

シーケンス図

この変更には新機能や制御フローの修正が含まれていないため、シーケンス図の生成は今回は不要です。

リンクされた問題に対する評価

目的 対応 説明
firebase を Bun で管理する (#433)

ツールの更新、しっかりやろう、
node_modulesを無視して上手く進もう。
コミットメッセージをリントして、
設定は完璧、万全だ。
🐰✨🚀


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 2133c7d and 25e3d3e.

Files ignored due to path filters (1)
  • bun.lockb is excluded by !**/bun.lockb
Files selected for processing (6)
  • .gitignore (1 hunks)
  • .tool-versions (1 hunks)
  • commitlint.config.cjs (1 hunks)
  • lefthook.yml (1 hunks)
  • package.json (1 hunks)
  • tool/bootstrap.sh (1 hunks)
Files skipped from review due to trivial changes (5)
  • .gitignore
  • .tool-versions
  • commitlint.config.cjs
  • lefthook.yml
  • package.json

Comment on lines +71 to +87
##############################################################################
##
## lefthook
##
##############################################################################
echo ""
echo "🚀 lefthook install: Start"
if type lefthook >/dev/null 2>&1; then
if lefthook install; then
echo "✅ lefthook install: Success"
else
echo "🚫 lefthook install: Failed"
fi
else
echo "⚠️ lefthook install: Skip bun because it could not be found."
echo "⚠️ lefthook install: This may be due to the fact that the mise installation has not been completed."
fi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lefthook のインストールセクションも同様に追加されており、PRの目的に適合しています。ただし、エラーメッセージには誤りがあり、「Skip bun」とありますが、これは明らかにコピペのミスでしょう。正しいツール名に修正する必要があります。

-  echo "⚠️ lefthook install: Skip bun because it could not be found."
+  echo "⚠️ lefthook install: Skip lefthook because it could not be found."
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
##############################################################################
##
## lefthook
##
##############################################################################
echo ""
echo "🚀 lefthook install: Start"
if type lefthook >/dev/null 2>&1; then
if lefthook install; then
echo "✅ lefthook install: Success"
else
echo "🚫 lefthook install: Failed"
fi
else
echo "⚠️ lefthook install: Skip bun because it could not be found."
echo "⚠️ lefthook install: This may be due to the fact that the mise installation has not been completed."
fi
##############################################################################
##
## lefthook
##
##############################################################################
echo ""
echo "🚀 lefthook install: Start"
if type lefthook >/dev/null 2>&1; then
if lefthook install; then
echo "✅ lefthook install: Success"
else
echo "🚫 lefthook install: Failed"
fi
else
echo "⚠️ lefthook install: Skip lefthook because it could not be found."
echo "⚠️ lefthook install: This may be due to the fact that the mise installation has not been completed."
fi

Comment on lines +53 to +69
##############################################################################
##
## bun
##
##############################################################################
echo ""
echo "🚀 bun install: Start"
if type bun >/dev/null 2>&1; then
if bun install; then
echo "✅ bun install: Success"
else
echo "🚫 bun install: Failed"
fi
else
echo "⚠️ bun install: Skip bun because it could not be found."
echo "⚠️ bun install: This may be due to the fact that the mise installation has not been completed."
fi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bun のインストールを処理するセクションの追加は、PRの目的に沿っています。ただし、エラーメッセージの文言が少し不正確です。例えば、「mise installation has not been completed」というメッセージが表示されますが、このスクリプトは mise のインストール状況を直接確認していません。より正確なエラーメッセージを提供することをお勧めします。

-  echo "⚠️ bun install: This may be due to the fact that the mise installation has not been completed."
+  echo "⚠️ bun install: bunが見つかりません。インストールが必要かもしれません。"
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
##############################################################################
##
## bun
##
##############################################################################
echo ""
echo "🚀 bun install: Start"
if type bun >/dev/null 2>&1; then
if bun install; then
echo "✅ bun install: Success"
else
echo "🚫 bun install: Failed"
fi
else
echo "⚠️ bun install: Skip bun because it could not be found."
echo "⚠️ bun install: This may be due to the fact that the mise installation has not been completed."
fi
##############################################################################
##
## bun
##
##############################################################################
echo ""
echo "🚀 bun install: Start"
if type bun >/dev/null 2>&1; then
if bun install; then
echo "✅ bun install: Success"
else
echo "🚫 bun install: Failed"
fi
else
echo "⚠️ bun install: Skip bun because it could not be found."
echo "⚠️ bun install: bunが見つかりません。インストールが必要かもしれません。"

@tatsutakeinjp-bot
Copy link
Contributor

Visit the preview URL for this PR (updated for commit 25e3d3e):

https://asis-quest-catalog-dev--pr434-improve-gh-433-himwljso.web.app

(expires Thu, 27 Jun 2024 12:34:35 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 5aa3b98f0f68e3358ab4b28a7b45d288ba01e139

@tatsutakein tatsutakein merged commit 36bddcf into main Jun 20, 2024
13 checks passed
@tatsutakein tatsutakein deleted the improve/GH-433 branch June 20, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improve]: firebase などのツールを Bun で管理する
1 participant