Skip to content

chore(ci): tweak merge script to have less conflicts and output to be more readable#10452

Open
dandarnell wants to merge 1 commit intothunderbird:mainfrom
dandarnell:merge-tweaks
Open

chore(ci): tweak merge script to have less conflicts and output to be more readable#10452
dandarnell wants to merge 1 commit intothunderbird:mainfrom
dandarnell:merge-tweaks

Conversation

@dandarnell
Copy link
Collaborator

This patch does two things:

Tells git to default to a "theirs" strategy when there are merge conflicts (i.e. in a main -> beta merge conflict, take the file from main).

Highlight "CONFLICT" in red, so it can be easily spotted in git merge output.

@dandarnell dandarnell requested review from a team as code owners January 30, 2026 01:31
@dandarnell dandarnell requested a review from asoucar January 30, 2026 01:31
@dandarnell dandarnell changed the title Merge tweaks Tweak merge script to have less conflicts and output to be more readable Jan 30, 2026
@wmontwe wmontwe changed the title Tweak merge script to have less conflicts and output to be more readable chore(ci): tweak merge script to have less conflicts and output to be more readable Feb 3, 2026
@dandarnell dandarnell force-pushed the merge-tweaks branch 2 times, most recently from a743a93 to 11fbb3d Compare February 6, 2026 22:25
.gitattributes Outdated
scripts/ci/templates/changelog_master.xml merge=merge_changelog

app-metadata/com.fsck.k9/*/changelogs/** merge=merge_changelog
app-metadata/net.thunderbird.android.beta/*/changelogs/** merge=merge_changelog No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

You'll want to add this one too:
app-metadata/net.thunderbird.android/*/changelogs/** merge=merge_changelog

.gitattributes Outdated
app-k9mail/src/main/res/raw/changelog_master.xml merge=merge_changelog
app-thunderbird/src/debug/res/raw/changelog_master.xml merge=merge_changelog
app-thunderbird/src/daily/res/raw/changelog_master.xml merge=merge_changelog
scripts/ci/templates/changelog_master.xml merge=merge_changelog
Copy link
Collaborator

Choose a reason for hiding this comment

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

These 3 can can be removed. It should be fine to overwrite what's in beta/release with what is in main:

app-thunderbird/src/debug/res/raw/changelog_master.xml merge=merge_changelog
app-thunderbird/src/daily/res/raw/changelog_master.xml merge=merge_changelog
scripts/ci/templates/changelog_master.xml merge=merge_changelog

@wmontwe wmontwe self-requested a review February 12, 2026 11:59
@wmontwe wmontwe removed the request for review from asoucar February 12, 2026 11:59
@wmontwe wmontwe assigned wmontwe and unassigned asoucar Feb 12, 2026

app-metadata/com.fsck.k9/*/changelogs/** merge=merge_changelog
app-metadata/net.thunderbird.android.beta/*/changelogs/** merge=merge_changelog
app-metadata/net.thunderbird.android/*/changelogs/** merge=merge_changelog No newline at end of file
Copy link
Collaborator

@coreycb coreycb Feb 13, 2026

Choose a reason for hiding this comment

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

Again, sorry I missed this. We don't want to merge anything in the above 3 changelogs directories. These directories contain release notes for releases from the current branch. (They are supposed to, at least, but that's probably not the case anymore due to previous merges.) The file names are based on the versionCode, and there's potential that the versionCode could overlap between beta and release.

So what we really want to do here is exclude any changes to these directories in the merge. Or at least use merge=ours.

app-k9mail/src/main/res/raw/changelog_master.xml merge=ours

app-k9mail/src/main/res/raw/changelog_master.xml merge=merge_changelog
app-thunderbird/src/release/res/raw/changelog_master.xml
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm sorry, I missed something here and I think I sent you down the wrong path. For the following 3 files, we want to keep ours in all cases.

app-thunderbird/src/release/res/raw/changelog_master.xml merge=ours
app-thunderbird/src/beta/res/raw/changelog_master.xml merge=ours
app-k9mail/src/main/res/raw/changelog_master.xml merge=ours

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.

4 participants