test: share relative-year output normalization

Description

Share relative-year output normalization across the CI, issue, merge request, and release command tests. The helper compiles the existing pattern once and applies the same replacement at all seven call sites. This change is confined to test code.

Closes #1093 (closed). The earlier attempt in !3659 (closed) was closed after inactivity.

Testing

  • Ran the cmdtest, ci/list, issuable/list, mr/issues, and release/view test packages.
  • Ran the CLI build, formatting, lint, and documentation generation checks.

This contribution contains AI-assisted code that was validated with the existing test suites.

Merge request reports

Loading
Loading