Skip to content

bump-versionスクリプトで末尾に余分な改行が追加されるバグを修正 - #5776

Merged
TinyKitten merged 1 commit into
devfrom
fix/bump-version-trailing-newlines
Apr 6, 2026
Merged

TinyKitten merged 1 commit into
devfrom
fix/bump-version-trailing-newlines

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Apr 6, 2026 •

Copy link
Copy Markdown
Member

Summary

  • scripts/bump-version.js の updateAppConfig 関数で iOS buildNumber を更新する際、lines.join('\n') の後に余分な \n を追加していたため、実行するたびに app.config.ts の末尾に空行が1行ずつ増殖するバグを修正
  • 蓄積されていた app.config.ts の不要な空行(73行分)を削除

Test plan

  • node scripts/bump-version.js --no-version-increment を複数回実行し、app.config.ts の末尾に空行が増えないことを確認

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • コードベースの整理:設定ファイルの不要な空白行を削除してメンテナンス性を向上。
    • ビルドシステムの最適化:iOSビルド番号更新時のファイル出力形式を改善。

@coderabbitai

coderabbitai Bot commented Apr 6, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 065d5be0-af8b-4ca8-844e-ed1db4c91ba9

📥 Commits

Reviewing files that changed from the base of the PR and between 5d0875a and 2f3a141.

📒 Files selected for processing (2)
  • app.config.ts
  • scripts/bump-version.js
💤 Files with no reviewable changes (1)
  • app.config.ts

📝 Walkthrough

Walkthrough

アプリケーション設定ファイルから末尾の空行を削除し、バージョンアップスクリプトにおいてiOS ビルド番号更新時のファイル書き込み処理の末尾改行を削除しました。

Changes

Cohort / File(s) Summary
Whitespace Cleanup
app.config.ts
末尾の空行73行を削除。コード、ロジック、エクスポート値に変更なし。
File Write Behavior
scripts/bump-version.js
updateAppConfig関数内でiOS ビルド番号更新時のファイル書き込みから末尾改行を削除。${lines.join('\n')}\nからlines.join('\n')に変更。

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

📋 ウサギが耳をピンと立て
末尾の空白を整理して
ファイルをすっきり片付けた🧹
改行も丁寧に調整し
コードの庭をきれいにしたよ ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive PRの説明には概要とテスト計画が含まれていますが、テンプレートで指定された「変更の種類」や「変更内容」などのセクションが形式的に不足しています。 テンプレートの構造に従い、「変更の種類」(バグ修正をチェック)、「変更内容」セクション、および「npm run lint」などのテスト項目のチェックボックスを明示的に含めることで、より標準化された形式にしてください。
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed PRのタイトルは、スクリプトの末尾に余分な改行が追加されるバグ修正という主要な変更を正確に反映しており、簡潔で明確です。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/bump-version-trailing-newlines

Comment @coderabbitai help to get the list of available commands and usage tips.

@TinyKitten TinyKitten self-assigned this Apr 6, 2026
@TinyKitten
TinyKitten merged commit 2cd1347 into dev Apr 6, 2026
4 checks passed
@TinyKitten
TinyKitten deleted the fix/bump-version-trailing-newlines branch April 6, 2026 11:42
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.

1 participant