Skip to content

fix: use MR pipelines endpoint for merged-results CI association - #10

Merged
nkaewam merged 1 commit into
mainfrom
fix/merged-results-pipeline-association
Jul 28, 2026
Merged

fix: use MR pipelines endpoint for merged-results CI association#10
nkaewam merged 1 commit into
mainfrom
fix/merged-results-pipeline-association

Conversation

@nkaewam

@nkaewam nkaewam commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace the non-existent GET /projects/:id/pipelines/:pipeline_id/merge_requests reverse lookup (404 on GitLab 18.11+) with forward lookup via GET /merge_requests/:iid/pipelines.
  • Fixes mrstack check aborting with gitlab_transport_failed when stack MRs have merged-results head_pipeline refs (refs/merge-requests/{iid}/merge).

Test plan

  • go test ./...
  • Updated TestPipelineEvidenceTransportUsesTypedEndpoints for real endpoint shape
  • Added TestCheckMergedResultsDoesNotCallBrokenPipelineToMREndpoint proving 404 on old endpoint does not block check

Made with Cursor

Replace the non-existent pipeline-to-MR reverse lookup (404 on GitLab 18.11+)
with forward lookup via GET /merge_requests/:iid/pipelines so check completes
for stacks with merged-results head pipelines.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@nkaewam
nkaewam merged commit a123f06 into main Jul 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant