• Stars
    star
    279
  • Rank 144,768 (Top 3 %)
  • Language
    Kotlin
  • License
    MIT License
  • Created almost 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Context and template-based completion for conventional/semantic commits.

Plugin logo

Conventional Commit

Available @ JetBrains Plugins Repository

Looking for the latest plugin binaries? Get them here as .zip
Supported IDE versions from 0.19.0: 202.6397 to 233.* (both inclusive)
Supported IDE versions upto 0.18.0: 193.**** to 212.* (both inclusive)

Additional Providers are available by installing other lightweight plugins.

Context & GitHub Plugins Repository Type Scope Subject Body Footer type Footer value
Angular (2+) βœ”οΈ Install (Deprecated) βœ”οΈ
Commitlint βœ”οΈ Install (Deprecated) βœ”οΈ βœ”οΈ
GitHub Coming soon...
VCS (extended) Coming soon...

The aim of this plugin is to provide completion for conventional commits, also named semantic commits, inside the VCS Commit dialog. The plugin must provide:

  • standard completion β€” based on context
  • template completion β€” initiated intentionally
  • extensibility β€” which means allowing attaching providers for the various parts of the commit:
    type, scope, subject, body and footer

Writing quality commit messages is important to keep an understandable and searchable history of your project. Conventional commits are a perfect example of that.
However, as an example, it can happen choosing the correct type or scope isn't that immediate. We might have forgotten about when a specific type should be used or what are the available scopes, or we simply need a way to quickly complete the subject.

The plugin helps with the above, while also respecting the aforementioned requirements, so that each user is able to customize the experience based on its preferences.

Completion modes

The plugin offers two completion modes.

  • Context based

    The commit message can be written like you have done until now, but by invoking completion you'll be offered the correct items based on the scope. Certain commodities, such as auto-completing the scope parenthesis or the : separator, are there too.

    Standard completion
  • Template based

    By firstly invoking the type completion and confirming an item, a template will be generated in place, and you'll be guided through each token (scope and subject). You can also go back (with shift + tab) and change your pick.

    Arbitrary characters' insertion is also allowed inside each template's range marker.

    Template completion

Inspections

Inspections are bundled too, and they're extensible, which means a Provider may contribute with additional ones.
The standard inspection warns you if you're not following the Conventional Commit standard. In case, just press ctrl + alt + l (on Windows) and the commit message will be formatted for you.

Inspections

You may enable/disable inspections via Settings > Version Control > Commit

Documentation

Each commit token is able to hold documentation. This is important in case you forgot their meaning, or if you want to share additional pieces of information with users.

Documentation

Documentation for tokens which might hold long text, spawning multiple lines, is rendered a bit differently.

Long documentation

Custom default types and scopes

Default commit types and scopes can be totally customized and shared with your team by creating and populating a JSON file named

conventionalcommit.json

The plugin uses an internal version of that file, which you can export via Export built-in defaults to path.
You may then customize it per your needs.

Custom defaults

You're allowed to provide custom commit's types, scopes and footer types, given the JSON file respects a Schema.
An example is shown below:

{
  "types": {
    "customType": {
      "description": "My custom type description"
    },
    "anotherCustomType": {},
    "yetAnotherCustomType": {
      "description": "This is my description",
      "scopes": {
        "first": {
          "description": "My first description"
        },
        "second": {
          "description": "My second description"
        }
      }
    }
  },
  "commonScopes": {
    "one": {
      "description": "My first common scope"
    },
    "two": {}
  },
  "footerTypes": [
    {
      "name": "My-custom-footer",
      "description": "My footer description"
    }
  ]
}

If the file is located in the project's root directory, the plugin will pick it up automatically, making it easy to version it, and avoiding to explicitly set a Custom default tokens path.

Providers

In a fresh installation you'll only be offered the most common tokens (e.g. fix, feat, build, BREAKING CHANGE, etc.), but the plugin exposes an API to enhance completion items, per each token. Type, scope and subject each have a specific entry point, and the implementation is called Provider. Each Provider is listed in a table, based on its context.

Providers

You're allowed to re-order Providers per your necessities, knowing that possible duplicates are going to be automatically filtered by the core engine.

More on this later on...


Author and contributors

More Repositories

1

bpmnio-typings

TypeScript
30
star
2

idea-return-highlighter

Highlight return keywords.
Kotlin
27
star
3

idea-conventional-commit-commitlint

Provides additional commit types and scopes via Commitlint rules.
Kotlin
24
star
4

idea-jenkins-pipeline

Provides support for writing Jenkins Pipelines in IntelliJ-based IDEs
Java
21
star
5

RPG

IBM RPG projects
18
star
6

idea-debugger-enhancer

Plug-in that addresses https://youtrack.jetbrains.com/issue/IDEA-189838
Kotlin
11
star
7

idea-kotlin-additional-highlighting

Provides additional highlighting options for Kotlin language elements.
Kotlin
7
star
8

coronavirus-post-remover

A Chrome plugin which removes Coronavirus-related posts from Facebook
TypeScript
6
star
9

idea-pomsky

Provides support for Pomsky in IntelliJ-based IDEs
Java
4
star
10

j

Java Toolbox for IBM i
Java
4
star
11

idea-kt-decompiler-everywhere

Decompile Kotlin .class files as Java code.
Java
4
star
12

idea-backtick

Allows wrapping and unwrapping text in backticks via actions.
Java
3
star
13

picocontainerx

A fork of PicoContainer 3 on the Gradle build system.
Java
2
star
14

idea-conventional-commit-angular2

Provides additional commit types and scopes in Angular (2+) contexts.
Java
2
star
15

DatabaseFileSystem

Java
2
star
16

idea-vscode

Allows starting and debugging VS Code extensions in IDEA-based IDEs
Java
2
star
17

Reference

Java
1
star
18

idea-rpg

An IntelliJ IDEA plugin that supports the IBM RPG language
Java
1
star
19

edoardo-test

JavaScript
1
star
20

komeglem

A multiplatform client for the popular Omegle chatroom.
Kotlin
1
star
21

dynamic-problem

TypeScript
1
star
22

idea-js-quickdoc-nowrap

1
star
23

j-gui

Java
1
star
24

pencil-sketchy-rough

A Pencil Collection that aims to reimplement the standalone Sketchy GUI with Rough.js
1
star
25

Kwetter

Java
1
star
26

ngx-sub-form-test

Temporary repo
TypeScript
1
star
27

rtc-backend

Java
1
star
28

idea-additional-inspections

Provides additional inspections for IDEA-based IDEs.
Java
1
star
29

idea-conventional-commit-github

1
star
30

kotlin-externals

Kotlin externals for a variety of JS libraries
Kotlin
1
star