Skip to content

feat(relay): GitLab change-request adapter seam M1 (Closes #1210) - #1338

Merged
sungjunlee merged 1 commit into
mainfrom
nightly/1210-cont
Sep 17, 2026
Merged

sungjunlee merged 1 commit into
mainfrom
nightly/1210-cont

Conversation

@sungjunlee

Copy link
Copy Markdown
Owner

Summary

M1 for #1210: GitLab change-request adapter seam next to the existing GitHub path. Unit tests only (no sandbox-exec).

Verification

  • node --test --test-concurrency=1 tests/relay-dispatch/scripts/forge-adapters.test.js: 17 passed

Closes #1210

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-15T22:16:31.206116Z 79c987e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 3dc95d24-a1a8-445a-a3a3-6f981e8ed7ea


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 79c987e107

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const rowsList = Array.isArray(rows) ? rows : [];
const sameHead = (row) => row?.source_branch === branch && sameGitlabProjectMr(row);
const identityMatches = rowsList.filter((row) => sameHead(row) && row.target_branch === baseBranch);
const pool = identityMatches.length ? identityMatches : rowsList.filter(sameHead);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Reject merge requests targeting a different base

When no MR targets baseBranch, this fallback selects same-source-branch MRs regardless of their target. If the sole MR has the expected head SHA but targets another branch—for example, release instead of the run's main—matching_mr_count becomes 1 and exactPublishedChangeRequest returns true because it never checks base_ref or identity_match_count. Review and landing can therefore bind to the wrong target branch; keep the pool restricted to identity matches or require the expected base in the exact-binding predicate.

Useful? React with 👍 / 👎.

@sungjunlee
sungjunlee merged commit 43f29f3 into main Sep 17, 2026
10 checks passed
@sungjunlee
sungjunlee deleted the nightly/1210-cont branch September 17, 2026 01:31
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.

GitLab change-request adapter: extract a native forge seam from a concrete consumer

1 participant