mirror of
https://github.com/coleam00/Archon.git
synced 2025-12-23 18:29:18 -05:00
1.2 KiB
1.2 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
Run git checkout main to switch to the main branch
Run git pull to pull the latest changes from the main branch
Run git checkout -b <branch_name> to create and switch to the new branch
Report
After generating the branch name: Return ONLY the branch name that was created (no other text)