Summary
Add a reusable shell script scripts/update-dependencies.sh that automates the dependency update workflow:
- Ensures a clean working tree
- Fetches and fast-forwards the base branch
- Creates a feature branch
- Runs
cargo update and captures the full output
- Optionally runs
./scripts/pre-commit.sh
- Commits the
Cargo.lock changes with the full cargo update output in the commit body
- Pushes the branch to the fork remote
- Optionally creates a PR via
gh pr create
Commit signing is on by default (git commit -S) and can be disabled with --no-sign-commit.
Usage
./scripts/update-dependencies.sh \
--branch 445-update-dependencies \
--push-remote josecelano \
--create-pr
See ./scripts/update-dependencies.sh --help for all options.
Summary
Add a reusable shell script
scripts/update-dependencies.shthat automates the dependency update workflow:cargo updateand captures the full output./scripts/pre-commit.shCargo.lockchanges with the fullcargo updateoutput in the commit bodygh pr createCommit signing is on by default (
git commit -S) and can be disabled with--no-sign-commit.Usage
See
./scripts/update-dependencies.sh --helpfor all options.