Create a Hotfix
Use the bundled script for deterministic discovery and git operations. Run all commands from the repository root.
List workspace crates:
python3 .github/skills/create-hotfix/create_hotfix.py list-cratesUse a single-select prompt to ask the user which crate to patch, using the crate names from the JSON output.
Prepare the hotfix:
python3 .github/skills/create-hotfix/create_hotfix.py prepare <crate-name>The command fetches tags and
maindirectly fromhttps://github.com/Azure/azure-sdk-for-rust, finds the latest stable<crate-name>@<version>tag, calculates the next patch version, createshotfix/<crate-name>-<version>from that tag unless already on ahotfix/branch, and returns candidate commits frommainas JSON.If candidates were returned, prompt the user with a multiselect containing each candidate's SHA and deterministic summary. Allow selecting none.
If commits are selected, preserve their displayed order and run:
python3 .github/skills/create-hotfix/create_hotfix.py cherry-pick <sha>...The script automatically resolves
Cargo.lockconflicts by taking--ours, then regenerating it with:cargo generate-lockfile --manifest-path Cargo.tomlIf the JSON result has a
waitingstatus, prompt the user to resolve and stage the listed conflicts. Remain waiting for the user to confirm they are ready, then run:python3 .github/skills/create-hotfix/create_hotfix.py continueRepeat this step if another commit conflicts. Do not abort or skip commits. Only show the final message after the script returns a
completestatus.Report the selected crate, base tag, patch version, branch, and cherry-picked commits. Tell the user:
Make any additional hotfix changes on this branch. Do not merge this branch into
main; cherry-pick any new fixes intomainseparately. See the Azure SDK hotfix branch policy for more information.