Skip to main content

Utility to insert task ticket id into commit message.

Project description

Ticketeer Quality assurance Coverage Status

Utility to insert task ticket id into commit message.

  • Simple. Does not need to be configured;
  • Environment agnostic. Works with any platform that can run git;
  • Fast. Won't slow down your commit process as actions are performed instantly.

Installation

go

go install github.com/mishamyrt/ticketeer@latest

pnpm

pnpm add --save-dev ticketeer

npm

npm install --save-dev ticketeer

yarn

yarn add --dev ticketeer

Usage

Standalone

Ticketeer can be used as a standalone tool. To install hook, run:

ticketeer install

The utility will check for installed hooks and install its own.

Runner

If you are already using runner hooks on your project and want to keep everything under their control, add a ticketeer apply call to your runner configuration.

Lefthook

Add the following to your lefthook.yml file:

prepare-commit-msg:
  commands:
    append-ticket-id:
      run: ticketeer apply

If ticketeer is installed using NodeJS package manager, prefix command with your package manager runner, e.g. pnpm ticketeer apply, yarn ticketeer apply or npx ticketeer apply.

Configuration

Ticketeer is configured by default to be as comfortable as possible for most, but the settings can be overridden. All options are optional (hehe), if you don't specify your own - default value will be used.

  • message
    • location - where to insert ticket id into commit message (title or body).
    • template - template to use when inserting ticket id into commit message. Must include {ticket} variable.
  • ticket
    • format - format of ticket id (numeric, alphanumeric, alphanumeric-small, alphanumeric-caps).
    • allow-empty - allow empty ticket id. If set to false, commit will be aborted if branch name doesn't contain ticket id.
  • branch
    • format - format of branch name (git-flow, git-flow-typeless, ticket-id).
    • ignore - Additional list of branch names to ignore. Default value is ["main", "master", "develop", "dev", "release/*"].

Default configuration is as follows:

message:
  location: body
  template: "{ticket}"
ticket:
  format: alphanumeric-caps
  allow-empty: true
branch:
  format: git-flow

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ticketeer-0.1.6a2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ticketeer-0.1.6a2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file ticketeer-0.1.6a2.tar.gz.

File metadata

  • Download URL: ticketeer-0.1.6a2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for ticketeer-0.1.6a2.tar.gz
Algorithm Hash digest
SHA256 f70d203863f9697388f63ca63453075b1baf08bda4ecb3daed7a60fd23cf20fd
MD5 640f0779a032c12ea6b4d78e4b29af95
BLAKE2b-256 8f67f0c66ad6eccf8bb4b0fdf9ee0281933c76ac5a99ed9f4933f3ac3fbb13b4

See more details on using hashes here.

File details

Details for the file ticketeer-0.1.6a2-py3-none-any.whl.

File metadata

  • Download URL: ticketeer-0.1.6a2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for ticketeer-0.1.6a2-py3-none-any.whl
Algorithm Hash digest
SHA256 692a9500e35a10492362f268dbb22fa854166a74c5bd3a2786612cfa8ad700da
MD5 ebd7fa54d67a0fe5e62085fde7be4083
BLAKE2b-256 22ec25bd17afcd7530f4de1262a380cde91190de1bf3dfb9b7f1e7e23f0cd3ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page