| name | merging |
| description | Expert procedure for merging commits in the monorepo, ensuring standardized commit messages and proper attribution. |
Merging Commits
Follow this procedure to merge commits while maintaining monorepo standards.
1. Gather Information
- Identify Merged Commits: Use
git log to find the commits being merged.
- Determine Current User: Get your emoji and alias from
.repo/๐งโ๐ป/{{user}}/contributor.json.
- Identify Co-authors: If the merged commits have authors other than yourself, add them as
Co-authored-by. If you are not the author of the merged commits, ensure you are also listed appropriately.
- Identify Tickets: Find the tickets associated with the changes. Ticket information is located in
.repo/๐ซ/YY/MM/DD/TICKETSLUG/ticket.json.
- Identify Areas: Determine the specific areas (bundles/technologies) the commits affect.
2. Format Commit Message
The commit message MUST follow this strict scheme:
{{dev-emoji}}{{dev-alias}}๐{{YY}}๐{{MM}}โ๏ธ{{DD}}๐
๐{{YY}}๐{{MM}}โ๏ธ{{DD}}
- {{ticket-emoji}} {{ticket-title}}
{{co-authored-by}}
{{signed-off-by}}
Components:
- Header: Your emoji and alias followed by the current date and the merge emoji (๐).
- Date Line: The date of the changes being merged. If multiple dates, list them chronologically (newest first).
- Ticket Line:
- Use the appropriate emoji from
dictionary.csv based on the ticket's domain or content.
- The title should be the official ticket title from
ticket.json.
- Co-authored-by:
Co-authored-by: Name <email> for every contributor other than the committer.
- Signed-off-by:
Signed-off-by: Name <email> for the current committer.
3. Example
๐ueli๐26๐04โ๏ธ07๐
๐26๐04โ๏ธ07
- ๐Add Max Children to Port and Type Connector
- ๐Refactor UI Levels from Stories to Storybook Decorator
๐26๐04โ๏ธ06
- ๐Server Baseline Diffs Studio Adapter E2e Tests
- ๐Use Mod Instead of Region for Rust Sections
- ๐งชConsolidate Server Into Bin Rs With Integration Tests
- โFix Mcp App Scene and Diagram Without Timeout
๐26๐04โ๏ธ03
- ๐Fix Type Connector Ring Detail Panel
- ๐ฉFix Workbench Piece Addition to Show Correct Type 3D Model in Scene
Co-authored-by: Kinan Sarakbi <kinan.sarak@gmail.com>
Signed-off-by: Ueli Saluz <ueli@semio-tech.com>
4. Verification
- Ensure all ticket emojis are accurate according to
dictionary.csv.
- Verify all co-authors are included if applicable.
- Check that the date format uses the specific emojis: ๐ (Year), ๐ (Month), โ๏ธ (Day).
- Ensure the header ends with the merge emoji ๐.