JiraCraft: Git Branch Management CLI
Project Overview: JiraCraft is a developer productivity tool that bridges the gap between JIRA and Git workflows. By automating branch creation and enforcing naming conventions, it reduces manual effort and potential errors in development workflows.
Objectives
- Automate Git branch creation from JIRA ticket information
- Enforce consistent branch naming conventions across teams
- Streamline the development workflow initialization process
- Reduce manual errors in branch naming and ticket tracking
Features
- Automated Branch Creation:
- Fetches ticket details directly from JIRA
- Creates properly formatted branch names automatically
- Supports custom branch naming patterns
- Interactive CLI Interface:
- Simple command-line interface with guided prompts
- Quick access to ticket information
- Configurable settings for JIRA credentials and preferences
- Smart Defaults:
- Automatically determines branch type based on ticket type
- Uses standardized prefixes (feature/, bugfix/, hotfix/)
- Sanitizes branch names for Git compatibility
- Configuration Management:
- Secure credential storage
- Customizable branch naming patterns
- Team-wide configuration sharing options
Technology Stack
- Node.js for cross-platform compatibility
- TypeScript for type safety and developer experience
- Commander.js for CLI interface
- Inquirer for interactive prompts
Installation
# Using npm
npm install -g jiracraft
# Using yarn
yarn global add jiracraft
# Using pnpm
pnpm add -g jiracraft
Start work on a ticket
jc start-work DC-1234
Configure settings
jc config
View options
jc display