Categorygithub.com/mrados7/go-git-commands
repository
0.0.30
Repository: https://github.com/mrados7/go-git-commands.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

go-git-commands

checkout

Creates a new branch from the current branch using naming strategy <type>/<ticket-id>/<branch-name>. Supported types are FEAT, FIX, IMPR, OPS.

Install

brew install mrados7/main/checkout
# or	
go install github.com/mrados7/go-git-commands/checkout@latest

Usage

checkout

commit

Uses branch name to detrmine the commit message. If the branch name is FIX/FE-1234/branch-name then the commit message will be [FIX] [FE-1234] commit-message.

Install

brew install mrados7/main/commit
# or	
go install github.com/mrados7/go-git-commands/commit@latest

Usage

commit

Config file

You can add a config file to project directory .checkout-config.json to override the default values. Alternatively, you can add a global config file to your home directory ~/.checkout-config.json.

{
  "branchTypes": [
    {
      "type": "FEAT",
      "description": "A new feature"
    },
    {
      "type": "FIX",
      "description": "A bug fix"
    },
    {
      "type": "DOCS",
      "description": "Documentation only changes"
    },
    ...
  ],
  "boards": [
    {
      "name": "PTB",
      "description": "Platform Team Board"
    },
    {
      "name": "SDB",
      "description": "Support Desk Board"
    }
    ...
  ]
}