We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b80e08e commit 56147c6Copy full SHA for 56147c6
image/src/github_pr_comment/__main__.py
@@ -639,7 +639,7 @@ def main() -> int:
639
640
proposed_plan_path = os.path.join(os.environ['STEP_TMP_DIR'], 'proposed-plan.txt')
641
with open(proposed_plan_path, 'w') as f:
642
- format_type = 'diff' if comment.headers.get('plan_text_format', 'text') == 'diff' else 'text'
+ format_type = 'diff' if comment.headers.get('plan_text_format', 'text').startswith('diff') else 'text'
643
_, formatted_proposed_plan = format_plan_text(proposed_plan.strip(), format_type)
644
f.write(formatted_proposed_plan.strip())
645
0 commit comments