freenowtech / freenowtech/git-jira

Introduce Config Variable to Dynamically Name Branches Based on Jira Ticket Type

Open
#1 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8
Forks
1
PR merge metrics
No merged PRs in 30d

Description

## Problem Statement:
Currently, the CLI for Jira creates branches with a fixed prefix ("feature") for all Jira ticket types, regardless of whether they are bugs, stories, or other types. While users can manually override this behavior by specifying a prefix using the --prefix configuration option, it is not convenient to do so for every ticket, especially when managing multiple ticket types simultaneously.

### Proposed Solution:
Introduce a configuration variable (`dynamic-branch-prefix` or `auto-branch-prefix`) that, when active, will modify the branch naming convention to include the type of Jira ticket. For instance:

For bug tickets: Branches will be prefixed with "bugfix"
For story and task tickets: Branches will be prefixed with "feature"
For refactor tickets: Branches will be prefixed with "refactor"

This enhancement will improve branch naming consistency and aid in project organization.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.