fix: escape newlines in changed_files JSON payload#465
Merged
ryanproback merged 1 commit intomainfrom Apr 9, 2026
Merged
Conversation
HamBP
approved these changes
Apr 8, 2026
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.
Summary
changed_files값에 raw newline이 포함되어Bad control character in string literal in JSON에러가 발생하는 버그 수정jq -Rs '.'로 문자열을 JSON-safe하게 이스케이프 처리하고, heredoc 대신 단일 라인 output으로 변경Changes
LIST변수 생성 시jq -Rs '.'를 파이프라인에 추가하여 newline을\n으로 이스케이프하고, heredoc 기반 multiline output 대신 단일 라인echo "list=$LIST"로 변경.Test plan
domain/src/,data/src/,presentation/src/하위 파일 변경 후 main에 push하여 워크플로우 트리거repository_dispatch이벤트가 유효한 JSON payload로 전달되는지 확인