Giter Site home page Giter Site logo

koji's Introduction

๐ŸฆŠ koji

An interactive CLI for creating conventional commits, built on cocogitto and inspired by cz-cli.

Current Release GitHub Workflow Status Codecov Dependency Status Conventional Commits License

Commit with koji

Features

Installation

Check the releases page to download koji for your platform.

This will soon enough be made easier with webinstall.dev.

Usage

Using koji

# Do some work
cd dev/work-stuff
git add .env.production

# Create a conventional commit
koji

With emoji

Passing -e or --emoji to koji will prepend your commit message with an emoji related to the commit type. The default emoji can be seen here.

You can also use shortcodes (:pinched_fingers:) in the scope, summary, or body.

Autocomplete

Passing -a or --autocomplete to koji will enable autocomplete for the scope prompt. This scans your commit history to collect previous scopes, so it does slow down the startup a bit.

For reference, ran inside the angular repo with 22k commits:

koji      0.00s
koji -a   0.40s

As a git hook

If you're using rusty-hook, set this in your .rusty-hook.toml file.

prepare-commit-msg = "koji --hook"

Similar should work for any hook runner, just make sure you're using it with the prepare-commit-msg hook as it writes the commit message to COMMIT_EDITMSG.

Use custom commit types

You can add custom commit types via a koji.toml file in the working directory. Some examples can be found here.

koji's People

Contributors

its-danny avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.