Force diff output to color gitlab-housekeeper preview
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 |
---|---|
![]() |
![]() |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Edited by Dylan Griffith