Skip to content

Update CI workflow to copy notes from fork after merge#546

Open
Ngineer101 wants to merge 4 commits intogit-ai-project:mainfrom
Ngineer101:main
Open

Update CI workflow to copy notes from fork after merge#546
Ngineer101 wants to merge 4 commits intogit-ai-project:mainfrom
Ngineer101:main

Conversation

@Ngineer101
Copy link

@Ngineer101 Ngineer101 commented Feb 17, 2026

Fixes: #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

Detect fork PR/MR sources, fetch their notes, and merge or copy them before processing merge outcomes so attribution survives fork-based merges.
@CLAassistant
Copy link

CLAassistant commented Feb 17, 2026

CLA assistant check
All committers have signed the CLA.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

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.

CI workflow updates to copy notes from fork after merge

2 participants

Comments