Context
- Current branch: !
git branch --show-current
Your task
- If on main, create a new branch. If provided as an argument, include the JIRA ticket in the branch name.
- Invoke
commit-and-pushto stage, commit, and push all changes. - Determine the correct conventional commit type by analyzing the actual changes
(diffs, commit messages, files touched). Use the full range of types:
feat- new user-facing functionalityfix- bug fixrefactor- restructuring without behavior changechore- maintenance, dependency bumps, config changesdocs- documentation onlytest- adding or updating tests onlyci- CI/CD pipeline changesbuild- build system or tooling changesperf- performance improvementstyle- formatting, whitespace, naming (no logic change) Do NOT default tofeat. Pick the type that most accurately describes the dominant intent of the changes.
- Create a pull request using
gh pr create --draftwith the determined conventional commit title. - Invoke
update-pr-description-and-titleto fill in the PR description from the repo's template and normalize the title.