zazu.dev package

Submodules

zazu.dev.commands module

Dev subcommand for zazu.

class zazu.dev.commands.IssueDescriptor(type, id, description='')

Bases: object

Info holder of type, ticket ID, and description.

get_branch_name()

Get the branch name for this issue descriptor.

readable_description()

Get the human readable description by replacing underscores with spaces.

zazu.dev.commands.check_if_active_branch_can_be_renamed(repo)

Throw if the current head is detached or if the active branch is protected.

zazu.dev.commands.check_if_branch_is_protected(branch_name)

Throw if branch_name is protected from being renamed.

zazu.dev.commands.make_issue_descriptor(name)

Split input into type, id and description.

zazu.dev.commands.make_ticket(issue_tracker)

Create a new ticket interactively.

zazu.dev.commands.offer_to_stash_changes(repo)

Offer to stash local changes if there are any.

zazu.dev.commands.rename_branch(repo, old_branch, new_branch)

Rename old_branch in repo to new_branch, locally and remotely.

zazu.dev.commands.verify_ticket_exists(issue_tracker, ticket_id)

Verify that a given ticket exists.

zazu.dev.commands.wrap_text(text, width=90, indent='')

Wrap each line of text to width characters wide with indent.

Parameters:
  • text (str) – The text to wrap.
  • width (str) – width to wrap to.
  • indent (str) – the indent to prepend to each line.
Returns:

A wrapped block of text.

Return type:

str

Module contents

Package file for zazu.dev.