Skip to content

ci: add read-only upstream merge preview - #855

Merged
GraciousGazelles merged 3 commits into
mainfrom
ci/upstream-merge-preview-20260915
Sep 15, 2026
Merged

GraciousGazelles merged 3 commits into
mainfrom
ci/upstream-merge-preview-20260915

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • Add a read-only, exact-commit merge preview with an optional explicitly mapped equivalent base.
  • Report structured conflict locations and types without source contents, human conflict messages, or repository writes.
  • Run isolated real-Git fixtures on pull requests; keep public-repository previews in a separate manual workflow.

Validation

GitHub-hosted fixture checks and the scoped review are pending. The fixtures cover clean content merges, text and directory conflicts, mapped bases, ambiguous or invalid inputs, path encoding, and process exit semantics. No local tests were run.

This change does not merge upstream, modify branch protections, move existing refs, or run a public-repository preview automatically. A conflict preview is diagnostic evidence, not merge or promotion approval.

@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
🔒 Security Review ✅ Completed 2026-09-15T12:43:04.108362Z 1822930 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.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request introduces upstream_merge_preview.py, a helper script to generate a read-only, metadata-only preview of an explicit upstream merge, along with its corresponding test suite in test_upstream_merge_preview.py. The review feedback highlights a path traversal vulnerability on Windows within serialise_repo_path due to unnormalized backslashes, and suggests adding test cases to cover this scenario. Additionally, the feedback points out that the Git version parsing regex is too restrictive and will fail on macOS environments, recommending a more permissive pattern.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 15, 2026
Merged via the queue into main with commit b62a610 Sep 15, 2026
77 checks passed
@GraciousGazelles
GraciousGazelles deleted the ci/upstream-merge-preview-20260915 branch September 15, 2026 13:16
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.

2 participants