Conversation
changelog生成時の文字エスケープ問題を解決: 問題: - sedコマンドでchangelog変数を置換する際に特殊文字でエラー - `sed: -e expression #1, char 96: unterminated 's' command` 解決策: - sed による変数置換を廃止 - 直接ファイル操作でchangelog.mdを生成 - 一時ファイル(changelog_temp.txt)を使用して安全に処理 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
auto-releaseワークフローで発生していた
sedエラーを修正します。問題
PR #8で導入したauto-releaseワークフローが以下のエラーで失敗していました:
失敗したワークフロー: Run #17603301677
原因
changelog生成時に
sedコマンドで変数置換を行う際、コミットメッセージに含まれる特殊文字(/,',", 改行等)がsedの区切り文字と衝突していました。解決策
✅ 修正内容
🔒 安全性の向上
テスト
この修正により、以下のような問題のあるコミットメッセージでもワークフローが正常に動作します:
fix: "quoted strings" and /path/namesfeat: multi-line\ncommit messagesdocs: special chars like $VAR and \code``関連PR
🤖 Generated with Claude Code