Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/bats-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Git configurations
run: |
git config --global user.name "CI User"
git config --global user.email "[email protected]"

- name: Set up Git
run: |
sudo apt-get update
sudo apt-get install -y git

- name: Install Bats
run: |
git clone --depth=1 https://github.com/bats-core/bats-core.git /usr/local/bats
/usr/local/bats/install.sh /usr/local
run: sudo apt-get install bats

- name: Run Bats tests
run: |
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@

Create a commit prefixed with the current branch name.

[![Bats Tests](https://github.com/sbimochan/smart-commit/actions/workflows/bats-tests.yml/badge.svg)](https://github.com/sbimochan/smart-commit/actions/workflows/bats-tests.yml)

[Story](https://www.lftechnology.com/blog/git-workflow-smart-commit/) behind Smart Commit. :zap:


## Installation

Run this command on terminal.

```shell
sudo curl https://raw.githubusercontent.com/sbimochan/smart-commit/master/commit -o /usr/local/bin/commit && sudo chmod +x /usr/local/bin/commit
sudo curl https://raw.githubusercontent.com/sbimochan/smart-commit/main/commit -o /usr/local/bin/commit && sudo chmod +x /usr/local/bin/commit
```

## Usage
Expand All @@ -38,7 +41,7 @@ sudo curl https://raw.githubusercontent.com/sbimochan/smart-commit/master/commit

## Skip Branches

To add a custom branch that you would like to skip, create a `.smart-commit-ignore` file in your top level directory. A `.smart-commit-ignore` file looks like [this](https://github.com/sbimochan/smart-commit/blob/master/.smart-commit-ignore).
To add a custom branch that you would like to skip, create a `.smart-commit-ignore` file in your top level directory. A `.smart-commit-ignore` file looks like [this](https://github.com/sbimochan/smart-commit/blob/main/.smart-commit-ignore).

Additionally, you might want to add `.smart-commit-ignore` to your `.gitignore` file.

Expand Down