Merge Upstream Master Skill
This skill is used when merging changes from the official Deskflow upstream repository into the rebranded DShare-HID repository.
Prerequisites
- •The user must specify:
- •The upstream master reference (e.g.,
upstream/master). - •The local branch to merge into (e.g.,
mainorupgrading-main).
- •The upstream master reference (e.g.,
- •The file
doc/trademark_rebranding_guide.mdmust be available in the repository.
Workflow
1. Preparation & Planning
- •Read
doc/trademark_rebranding_guide.mdto understand the rebranding rules and specific file mappings. - •Fetch the latest changes from the upstream remote.
- •Create an
implementation_plan.mdthat outlines:- •The merge operation.
- •Specific rebranding rules to apply during the merge and conflict resolution.
- •The strategy for handling
.githubfiles (discard all upstream changes).
- •PAUSE: Request user approval of the implementation plan using
notify_user.
2. Execution
- •Perform the
git merge. - •Resolve conflicts by prioritizing DShare-HID rebranding as defined in the guide.
- •Perform a post-merge sweep for any re-introduced "Deskflow" strings (case-insensitive) in the source code and configuration.
- •Fix any build regressions introduced by the merge (e.g., resource file names, bundle names).
3. Reporting
- •Provide a detailed report in
walkthrough.mdexplaining:- •What conflicts were encountered.
- •How each conflict was resolved.
- •Any rebranding fixes applied to auto-merged files.
4. Continuous Improvement
- •Assess if the merge revealed new rebranding scenarios not covered by
doc/trademark_rebranding_guide.md. - •If new scenarios exist, propose updates to the guide or update it directly if instructed.