pub(crate) fn create_issue_and_branch_from_default_branch() -> Result<(), Error>Expand description
Create a GitHub issue and develop it with an associated branch.
Prompts the user for an issue title, creates the issue via GitHub CLI, then develops it by creating an associated branch from the default branch. Optionally checks out the newly created branch based on user preference.
§Errors
- If [
ytil_tui::text_prompt] fails when prompting for issue title. - If [
ytil_tui::yes_no_select] fails when prompting for branch checkout preference. - If [
ytil_gh::issue::create] fails when creating the GitHub issue. - If [
ytil_gh::issue::develop] fails when creating the associated branch.
§Rationale
Separates issue creation flow from PR listing flow, allowing users to quickly bootstrap new work items without leaving the terminal interface.