Skip to content

mrados7/go-git-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
    }
    ...
  ]
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages