Skip to content

Force diff output to color gitlab-housekeeper preview

Dylan Griffith requested to merge gitlab-housekeeper-color-diff into master

What does this MR do and why?

Force diff output to color gitlab-housekeeper preview

The diff output does not use color when shelled out from Ruby by default. Setting --color=always seems to fix this. Since this is only used to send directly to puts straight after this also seems safe. If we were using this diff content for something else it might not be great but the scope of this line of code is pretty clearly only for the preview output.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
Screenshot_2024-01-16_at_4.41.33_pm Screenshot_2024-01-16_at_4.41.22_pm

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Dylan Griffith

Merge request reports