-
Notifications
You must be signed in to change notification settings - Fork 1
LT Rebase Merge: Deal with failure better, Shell Check fixes #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: mainline
Are you sure you want to change the base?
Conversation
If for whatever reason the execution fails its annoying to figure out what the remaining commands need to be this prefills them out so if it fails its easy to pick up upon failure. Future work: Self Healing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except for the typo pointed out by copilot, LGTM 🥌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚤
b1055ff
to
7940a50
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Enhances the lt_rebase_merge.sh
script by printing all expected git commands before execution and reinforcing variable quoting for safe shell expansion.
- Prints anticipated git steps upfront for easier manual recovery on failure
- Wraps all branch and tag variables in quotes to avoid word-splitting
- Applies ShellCheck-inspired fixes and consistency updates
Comments suppressed due to low confidence (1)
lt_rebase_merge.sh:66
- [nitpick] Consider rephrasing this header for clarity, e.g.
echo "Commands to run if the script fails mid-execution:"
.
echo "Commands expected to run (This is in the event it fails during the run)"
Includes PR Copilot suggestions, mostly just some minor grammar and print safety checks not identified by shellcheck.
7940a50
to
95b8740
Compare
Due to changes I made to the rules I accidentally blocked our process here and the
lt_rebase_merge.sh
script failed mid way so I had to hand redo it. It was possible to do this from the shell output but it was less straight forward than I'd have wished and for other users.Now we're adding the intended actions prior to starting the script so users can copy and paste.
Ideally in the future this will be self healing state machine.