MasTurbo Deploy
Release. Merge. Tag. Deploy. ItalianoEstensione per VS Code e Cursor. Nome un po’ sfacciato, mestiere serissimo. Tu scegli versione, branch e destinazioni. Io faccio fetch, checkout, bump, merge, tag e push. Tu guardi il log. Spoiler: a volte c’è un conflitto. Se il tuo pomeriggio è “creo Cosa faApre i repo git del workspace, parte da un branch (di solito Tutto da un pannello, con log in diretta. Senza copiare comandi da uno Slack di tre mesi fa. Come si apre
Lingue: Italiano, English, Español, Français, Deutsch. Cartella
|
| Interruttore | Cosa fa |
|---|---|
| Riusa release | Se release/x.y.z esiste già, ci lavoro sopra. |
| Dry-run | Mostro i comandi, non tocco il repo. |
| Elimina branch mergiati | Via i feature branch dopo il merge. main, master, develop, dev, unstable, staging e la release restano intoccabili. |
| Elimina branch release | A lavoro finito, release/x.y.z va in pensione. |
Repository — workspace con più git? Li elenco, tu scegli. Ti dico branch corrente, base, produzione e se il working tree è sporco. Se è sporco mi fermo: prima commit o stash.
Versione — a sinistra quella attuale, a destra quella nuova. Tu scrivi 1.4.0, io creo release/1.4.0, aggiorno package.json (e package-lock.json se c’è), uso 1.4.0 come tag e committo chore: bump version to 1.4.0. Se package.json non c’è, salto il bump e vado avanti.
Branch di partenza — da dove nasce la release. Se c’è develop, lo preseleziono.
Branch di partenza del tag — dove creo il tag dopo il merge della release. Default main (o master se main non c’è). Si configura con tagBranch in .mtconfig.
Merge sulla release — quali feature entrano, oltre alla base. Albero, ricerca, badge. Merge --no-ff, storia leggibile.
Branch che ricevono il tag — produzione ce l’ha già. Qui scegli gli altri. Per ciascuno: pull → merge <tag> --no-ff → push.
Release notes — textarea, oppure Genera note: prima GitHub, se manca il git log. Dopo una run riuscita diventano il body della GitHub Release (login GitHub di VS Code/Cursor). In dry-run o se origin non è GitHub, non creo niente.
Log — ogni passo, il comando, l’esito. Verde ok, giallo ehm, rosso ci siamo fermati.
Cosa succede quando premi Avvia
fetch --all --prune
checkout + pull del branch di partenza
creo (o riuso) release/x.y.z
bump versione + commit
merge dei feature branch
push della release
checkout + pull della produzione
merge della release in produzione
push della produzione
tag + push dei tag
merge del tag sugli altri branch
checkout produzione
(opzionale) pulizia branch
creo la GitHub Release con le note
Se qualcosa va storto mi fermo. Non provo lo stesso e poi piangiamo insieme.
Conflitti
Un merge può litigare. Io interrompo, ti mostro branch e file, tu risolvi a mano. Poi Riprendi merge tag: completo i merge rimasti. Niente da rifare tutto da capo.
Storico
Lo storico è la lista delle GitHub Release, con l’autore. Se questa macchina (o un altro clone, dopo il sync) ha fatto il deploy con MasTurbo, sulla stessa scheda trovi anche branch, esito e log, copiati da .mthistory. Se la Release arriva solo da GitHub, vedi tag, note, data, autore e link.
Cosa non sono
Non sostituisco CI/CD. Non risolvo i conflitti al posto tuo. Non parto con il working tree sporco. Non cancello main.
In 30 secondi
- Apri il wizard
- La prima volta accendi Dry-run
- Scegli repo e nuova versione
- Conferma il branch di partenza
- Conferma il branch di partenza del tag
- Spunta le feature da mergiare
- Spunta i branch che devono prendere il tag
- Scrivi le release notes
- Avvia release
- Log verde? Fatto. Altrimenti sistema i conflitti e Riprendi merge tag
Tu decidi cosa esce. Io eseguo come esce.
English
A VS Code / Cursor extension. Cheeky name. Very serious job.
You pick a version, some branches, a few destinations. I fetch, checkout, bump, merge, tag, and push. You watch the log. Spoiler: sometimes there’s a conflict.
If your afternoon is “create release/1.2.3, merge three features, bump package.json, tag it, merge to main, merge the tag into staging… and pray”, we should talk.
What it does
Finds git repos in the workspace, starts from a branch (usually develop), creates release/x.y.z, bumps the version, merges the features you pick, lands everything on production, creates the tag, merges it into the other branches, and optionally tidies leftovers.
One panel. Live log. No more copying commands from a three-month-old Slack thread.
How to open it
- Activity Bar icon → repository list → click
- Command Palette → MasTurbo Deploy: Open wizard
Languages: English, Italiano, Español, Français, Deutsch.
The .mtdeploy folder
When you open a repo, if it’s missing I create the hidden folder and add it to .gitignore:
.mtdeploy/
.mtconfig
.mthistory
Don’t commit it. It’s local memory for this clone. Old root files (.mtdeploy or .mthistory) get moved inside.
.mtconfig — start branch (sourceBranch), where the tag is born (tagBranch, default main), tag targets, and the four switches (reuse release, dry-run, delete merged, delete release). Change them in the wizard, I rewrite this file. If it’s missing I create it with develop, tag on main, targets develop / unstable / staging / production, and dry-run on.
.mthistory — local history cache. GitHub Releases stay the shared source (notes, author, MasTurbo metadata). I keep logs, branches, and runs GitHub never sees (dry-run and failures, cap 80). On open I pull missing tags from GitHub and merge them without overwriting richer local extras.
Features
Options (they live in .mtconfig)
| Switch | What it does |
|---|---|
| Reuse release | If release/x.y.z already exists, I keep working on it. |
| Dry-run | Commands in the log, zero writes. |
| Delete merged branches | Feature branches go away after merge. main, master, develop, dev, unstable, staging and the release stay untouchable. |
| Delete release branch | When we’re done, release/x.y.z retires. |
Repository — several git repos? I list them, you pick. I show current branch, base, production, and whether the working tree is dirty. Dirty? I stop. Commit or stash first.
Version — current on the left, new on the right. You type 1.4.0, I create release/1.4.0, update package.json (and package-lock.json if it exists), use 1.4.0 as the tag, and commit chore: bump version to 1.4.0. No package.json? I skip the bump and keep going.
Start branch — where the release is born. If develop exists, I preselect it.
Tag start branch — where I create the tag after merging the release. Default main (or master if main is missing). Set it with tagBranch in .mtconfig.
Merge into the release — which features come in, on top of the base. Tree, search, badges. --no-ff merges, readable history.
Branches that receive the tag — production already got it. You pick the others. For each: pull → merge <tag> --no-ff → push.
Release notes — textarea, or Generate notes: GitHub first, then git log. After a successful run they become the GitHub Release body (VS Code/Cursor GitHub login). Dry-run or a non-GitHub origin: I create nothing.
Log — every step, the command, the result. Green good, yellow hmm, red we stopped.
What happens when you hit Start
fetch --all --prune
checkout + pull the start branch
create (or reuse) release/x.y.z
bump version + commit
merge feature branches
push the release
checkout + pull production
merge the release into production
push production
tag + push tags
merge the tag into the other branches
checkout production
(optional) branch cleanup
create the GitHub Release with the notes
If something breaks, I stop. I don’t try anyway and cry later.
Conflicts
A merge can argue. I stop, show you the branch and files, you fix them by hand. Then Resume merge tag: I finish the remaining merges. No starting over.
History
History is the list of GitHub Releases, plus the author. If this machine (or another clone, after sync) ran the deploy with MasTurbo, the same card also shows branches, result and log from .mthistory. If the Release only exists on GitHub, you get tag, notes, date, author and link.
What I’m not
Not a CI/CD replacement. I don’t resolve conflicts for you. I won’t start on a dirty working tree. I won’t delete main.
In 30 seconds
- Open the wizard
- First time, turn on Dry-run
- Pick the repo and the new version
- Confirm the start branch
- Confirm the tag start branch
- Tick the features to merge
- Tick the branches that should get the tag
- Write the release notes
- Start release
- Log green? Done. Otherwise fix conflicts and Resume merge tag
You decide what ships. I run how it ships.