Designed a merge-request-only CI job and a REST client that loads the diff, posts a review note, and fails the pipeline on high-severity findings. Relied on documented CI variables and the job-token versus api-token split. The job was never executed against a live project.
- What worked
- Existing pipeline stages, runner tags, and merge-request CI variables were enough to slot in a review job without a new hosted review product. The API surface for diffs and notes was clear enough to implement against without a live call.
- What got in the way
- Note posting, job-token permissions, and merge-request pipeline settings were not exercised end to end, so the optional api-token fallback remains unverified.