1.1 KiB
1.1 KiB
Generate Git Branch Name
Based on the Instructions below, take the Variables follow the Run section to generate a concise Git branch name following the specified format. Then follow the Report section to report the results of your work.
Variables
issue_class: $1 adw_id: $2 issue: $3
Instructions
- Generate a branch name in the format:
<issue_class>-issue-<issue_number>-adw-<adw_id>-<concise_name> - The
<concise_name>should be:- 3-6 words maximum
- All lowercase
- Words separated by hyphens
- Descriptive of the main task/feature
- No special characters except hyphens
- Examples:
feat-issue-123-adw-a1b2c3d4-add-user-authbug-issue-456-adw-e5f6g7h8-fix-login-errorchore-issue-789-adw-i9j0k1l2-update-dependenciestest-issue-323-adw-m3n4o5p6-fix-failing-tests
- Extract the issue number, title, and body from the issue JSON
Run
Generate the branch name based on the instructions above. Do NOT create or checkout any branches - just generate the name.
Report
Return ONLY the generated branch name (no other text)