[PR #546] Update CI workflow to copy notes from fork after merge #555

Open
opened 2026-03-02 04:13:57 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/git-ai-project/git-ai/pull/546

State: open
Merged: No


Fixes: https://github.com/git-ai-project/git-ai/issues/411

Summary

  • Adds fork-aware notes handling in CI merge flows so AI authorship from forked PRs/MRs is preserved.
  • Detects fork source repos in both GitHub and GitLab CI contexts, fetches refs/notes/ai from the fork, and merges/copies notes locally before attribution processing.
  • Extends git-ai ci local merge with --fork-clone-url and adds integration coverage in tests/ci_fork_notes.rs for fork-notes and no-notes scenarios.

Why

Fork merges (especially merge-commit paths) can miss authorship notes if only the base remote is checked; this ensures attribution survives common fork workflows without failing when fork notes are absent.


Open with Devin
**Original Pull Request:** https://github.com/git-ai-project/git-ai/pull/546 **State:** open **Merged:** No --- Fixes: https://github.com/git-ai-project/git-ai/issues/411 ## Summary - Adds fork-aware notes handling in CI merge flows so AI authorship from forked PRs/MRs is preserved. - Detects fork source repos in both GitHub and GitLab CI contexts, fetches refs/notes/ai from the fork, and merges/copies notes locally before attribution processing. - Extends git-ai ci local merge with --fork-clone-url and adds integration coverage in tests/ci_fork_notes.rs for fork-notes and no-notes scenarios. ## Why Fork merges (especially merge-commit paths) can miss authorship notes if only the base remote is checked; this ensures attribution survives common fork workflows without failing when fork notes are absent. <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/git-ai-project/git-ai/pull/546" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#555
No description provided.