Skip to content

Commit

Permalink
chores/main-branch: Convert master to main branch as default (#34)
Browse files Browse the repository at this point in the history
* chores/main-branch: Convert master to main branch as default

* chores/main-branch: Install executable instead of git repo

* chores/main-branch: Add git config

* chores/main-branch: Use checkout v4
  • Loading branch information
sbimochan authored Nov 4, 2024
1 parent b9fd9f5 commit be01c3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Create a commit prefixed with the current branch name.
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 +38,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

0 comments on commit be01c3d

Please sign in to comment.