Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jackall3n/gitter

Ah, I think gitter is already something else
https://github.com/jackall3n/gitter

Last synced: 4 days ago
JSON representation

Ah, I think gitter is already something else

Awesome Lists containing this project

README

        

# 💡 gitter (better name pending)

## Installation

```shell
go install github.com/jackall3n/gitter
```

## Example
![Example](.github/images/checkout.png)

## Usage

### Checkout

`checkout` will use a configuration file to format your branch name

```shell
gitter checkout [ticket] [description]
```

#### With alias
```shell
# ~/.zshrc
alias co="gitter checkout"
```
```shell
co [ticket]
```

### Commit

`commit` will append the ticket from the branch name to the start of the commit message

```shell
gitter commit [message]
```

#### With alias
```shell
# ~/.zshrc
alias cm="gitter cm"
```
```shell
cm [ticket]
```

#### Example
```shell
Development/bulb-git/account master ✗
â–¶ co 123
description: Something really important

Development/bulb-git/account ja/UAP-123/something-really-important ✗
â–¶ cm
message: The important work

Development/bulb-git/account ja/UAP-123/something-really-important ✔
â–¶ git log -1 --oneline
(HEAD -> ja/UAP-123/something-really-important) [UAP-123]: The important work
```

## Configuration

Add a `.gitter.yaml` configuration to your `$HOME` directory, or your project root
```shell
# Global config
touch ~/.gitter.yaml

# Project specific
touch ~/development/special-project/.gitter.yaml
```

#### Example

```yaml
# ~/.gitter.yaml
prefix: ja
board: ABC
```