Add support for variable expansion in `rules:changes:compare_to`
What does this MR do and why?
This MR adds support for variable expansion in rules:changes:compare_to. This is what was requested in #369916 (closed).
At this point this was not tested.
How to set up and validate locally
I believe this MR should be tested by reusing the test plan from the MR implementing compare_to (!90968 (merged)), but using a variable instead.
For example:
variables:
BASE_BRANCH: main
test2:
script: exit 0
rules:
- changes:
paths:
- README.md
compare_to: $BASE_BRANCH
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.