Skip to content

Auto prefix commits from current branch + add default project prefix to help mono-repo organization

License

Notifications You must be signed in to change notification settings

guiohm/intellij-mono-repo-commit-prefix

Repository files navigation

Intellij plugin: Git (Mono-repo) Commit Prefix

Build Version Downloads

This plugin extract a typical JIRA task id (ABCD-1234) from the current git branch, and allows using a default prefix if nothing is found in the branch name.

I'm using this to automate changelog creation and filtering based on the prefix associated with each project/app, even when commits were not associated with a particular Jira task.

Features

  • Automatically change the commit prefix if switching branches
  • If intellij is suggesting a (previous) commit message, only the prefix will be updated
  • Set a default prefix per project (applied when no task id is found in branch name)
  • Wrap the prefix as you like

Installation

  • Using IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "Mono Repo Commit Prefix" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...


Plugin based on the existing Idea-commit-prefix plugin.

About

Auto prefix commits from current branch + add default project prefix to help mono-repo organization

Topics

Resources

License

Stars

Watchers

Forks

Languages