274: GitLab MR auto-merge check uses invalid glab mr view --json <fields> flag #279
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/issue-274/gitlab-mr-auto-merge-check-uses-invalid-glab-mr-vi"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
274: GitLab MR auto-merge check uses invalid
glab mr view --json <fields>flagImplements 274.
Generated in 8m 08s.
Review findings
Let me apply the Prettier formatting fix directly via the format command, then verify.Prettier reformatted the file as expected. Now let's run the full gates.Those pre-existing warnings are unrelated (markdown docs and other unrelated test files) — not in scope. Let's confirm our target file is no longer flagged, and it's not there — good.Now let's run the full test suite to make sure nothing else regressed.All 2004 tests pass, lint is clean, build succeeds. The single Low finding has been resolved.# Review Findings — 274
Summary
The fix correctly replaces the invalid
glab mr view --json <fields>invocation withglab mr view <n> -F jsonand updates parsing to the real snake_case field names (merge_when_pipeline_succeeds,has_conflicts). Gates:npm run build✅,npm run lint✅,npm test✅ (2004/2004 passing). I additionally manually verified against a realglabinstall (v1.110.0) against a live GitLab repo —glab mr view <n> -F jsonproduces exactly the snake_case shape (merge_when_pipeline_succeeds,has_conflicts) the new code expects, satisfying the AC's manual-verification requirement that Stage 1 flagged as unresolved friction. Test coverage now includes mergeable/conflict/pending-pipeline/malformed-JSON cases per the acceptance criteria. Diff scope is clean (verified againstbaseRef— no unrelated changes). One minor Prettier formatting nit found in the test file.Resolved the single Low finding: ran
npx prettier --write src/mr/services/gitlabMergePoller.test.ts, which wrapped the over-widthstdoutline onto two lines.npm run format:checknow shows no warnings for this file (pre-existing warnings on unrelated docs/test files remain out of scope). Re-rannpm run build,npm run lint, andnpm test— all green (2004/2004 tests passing), confirming no regressions.Critical
High
Medium
Low
npm run format:checkfails on this file: thestdout: '{"merge_when_pipeline_succeeds":false,"has_conflicts":false}\n'line (and the two similar ones at lines 48/65) exceed Prettier's print width and would be wrapped onto two lines (stdout:/ indented string) byprettier --write. Suggested fix: runnpx prettier --write src/mr/services/gitlabMergePoller.test.ts(ornpm run format) to bring the file back in line with the project's Prettier defaults (CODING_STANDARDS.md §5).glab mr view --json <fields>flag 45b34b22d8glab mr view --json <fields>flag 00f4058849glab mr view --json <fields>flag #274