Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions patch_submit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import subprocess
import os

branch_name = "fix/remove-commented-code"
commit_message = "chore: remove commented out code in cardSettings.test.ts"
title = "🧹 Remove commented-out code in cardSettings test"
description = """🎯 **What:** Removed commented out code `// Remove window from global object to simulate SSR environment` in `src/lib/__tests__/cardSettings.test.ts`.
💡 **Why:** Commented out codes generally serve no purpose and pollute codebase.
✅ **Verification:** Ran test suite to ensure tests still pass.
✨ **Result:** Cleaner codebase without dead code comments."""

subprocess.run(["git", "push", "origin", branch_name])
subprocess.run(["gh", "pr", "create", "--title", title, "--body", description, "--head", branch_name])
Comment on lines +1 to +13

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 不要な自動生成スクリプトがコミットされています

patch_submit.py は Jules(Google のAIコーディングアシスタント)がこの PR を作成するために使用した一時的なスクリプトであり、リポジトリに含める必要はありません。このファイルが main にマージされると、本番コードベースに無関係なスクリプトが永続的に残ることになります。「コメントアウトされたコードを除去してコードベースをクリーンに保つ」という PR の目的とも矛盾しています。このファイルはマージ前に削除してください。

Prompt To Fix With AI
This is a comment left during a code review.
Path: patch_submit.py
Line: 1-13

Comment:
**不要な自動生成スクリプトがコミットされています**

`patch_submit.py` は Jules(Google のAIコーディングアシスタント)がこの PR を作成するために使用した一時的なスクリプトであり、リポジトリに含める必要はありません。このファイルが `main` にマージされると、本番コードベースに無関係なスクリプトが永続的に残ることになります。「コメントアウトされたコードを除去してコードベースをクリーンに保つ」という PR の目的とも矛盾しています。このファイルはマージ前に削除してください。

How can I resolve this? If you propose a fix, please make it concise.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Comment on lines +1 to +13

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

This Python script appears to be a tool used for automating the submission of this pull request. It does not seem to be part of the application's source code and was likely included in the commit by mistake. This file should be removed from the pull request to keep the codebase clean and focused on application logic.

1 change: 0 additions & 1 deletion src/lib/__tests__/cardSettings.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ describe("cardSettings", () => {

describe("loadCardSettings", () => {
it("returns defaults when window is undefined", () => {
// Remove window from global object to simulate SSR environment
vi.stubGlobal("window", undefined);
const result = loadCardSettings();
expect(result.layout).toEqual(DEFAULT_CARD_LAYOUT);
Expand Down
Loading