Skip to content

Commit 56147c6

Browse files
committed
Fix incorrect plan changed report with truncated plans
1 parent b80e08e commit 56147c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

image/src/github_pr_comment/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def main() -> int:
639639

640640
proposed_plan_path = os.path.join(os.environ['STEP_TMP_DIR'], 'proposed-plan.txt')
641641
with open(proposed_plan_path, 'w') as f:
642-
format_type = 'diff' if comment.headers.get('plan_text_format', 'text') == 'diff' else 'text'
642+
format_type = 'diff' if comment.headers.get('plan_text_format', 'text').startswith('diff') else 'text'
643643
_, formatted_proposed_plan = format_plan_text(proposed_plan.strip(), format_type)
644644
f.write(formatted_proposed_plan.strip())
645645

0 commit comments

Comments
 (0)