-
Notifications
You must be signed in to change notification settings - Fork 35
IFC-1361: Merge core read only repositories on branch merge #7459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: stable
Are you sure you want to change the base?
Changes from 3 commits
d379518
fac5884
8d6bc0e
b5bdb7a
6c50c51
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1 @@ | ||||||
| Merge core read only repositories on branch merge | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use hyphenation for compound adjective. The phrase "read only" should be hyphenated as "read-only" when used as a compound adjective. Apply this diff: -Merge core read only repositories on branch merge
+Merge core read-only repositories on branch merge📝 Committable suggestion
Suggested change
🧰 Tools🪛 LanguageTool[grammar] ~1-~1: Use a hyphen to join words. (QB_NEW_EN_HYPHEN) 🤖 Prompt for AI Agents |
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify whether read-only repositories should have status checks.
The
merge_core_read_only_repositoriesmethod merges all read-only repositories found in both branches without checkinginternal_status(like theINACTIVEcheck at line 260 inmerge_core_repositories) or conditional merge criteria (likesync_with_gitat line 263). This could potentially merge repositories that shouldn't be merged.Run this script to check if read-only repositories have an internal_status field:
If read-only repositories do have an
internal_statusfield, consider adding similar checks as inmerge_core_repositories.🏁 Script executed:
Length of output: 0
Length of output: 4349
🏁 Script executed:
Length of output: 1551
🏁 Script executed:
Length of output: 4149
🏁 Script executed:
Length of output: 4110
Length of output: 0
🏁 Script executed:
Length of output: 668
🏁 Script executed:
Length of output: 1846
🏁 Script executed:
Length of output: 479
Length of output: 908
🏁 Script executed:
Length of output: 161
🏁 Script executed:
Length of output: 1082
🏁 Script executed:
Length of output: 276
Add status and sync checks to
merge_core_read_only_repositoriesto match regular repository merge logic.Read-only repositories inherit
internal_statusfromCoreGenericRepository(line 119 in protocols.py). The method currently merges all read-only repos found in both branches without checking:merge_core_repositories): Skip INACTIVE repositoriessync_with_gitis enabled ORinternal_statusis STAGINGApply the same checks to
merge_core_read_only_repositoriesand passinternal_statusto theGitRepositoryMergemodel for consistency.🤖 Prompt for AI Agents