Arguments
$ARGUMENTS
- •
--no-branch: Push directly to main without creating a new branch
Context
- •Current git status: !
git status - •Current git diff (staged and unstaged changes): !
git diff HEAD - •Current branch: !
git branch --show-current
Your task
Based on the above changes:
- •If on main and
--no-branchis NOT specified, create a new branch - •Create a single commit with an appropriate message
- •Push the branch to origin
Output
After completion, show:
- •Branch: branch name
- •Commit: commit hash and message
- •PR: GitHub PR creation URL