From 2856499c60406081d03e4f44dbffa7271567c090 Mon Sep 17 00:00:00 2001 From: Bimochan Shrestha Date: Mon, 4 Nov 2024 20:14:32 +0545 Subject: [PATCH 1/4] chores/main-branch: Convert master to main branch as default --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 154bb48..2e211a2 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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. From 60677b832b526509120a40a040b070c37602b876 Mon Sep 17 00:00:00 2001 From: Bimochan Shrestha Date: Mon, 4 Nov 2024 20:17:24 +0545 Subject: [PATCH 2/4] chores/main-branch: Install executable instead of git repo --- .github/workflows/bats-tests.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/bats-tests.yml b/.github/workflows/bats-tests.yml index b85eb3d..e52724c 100644 --- a/.github/workflows/bats-tests.yml +++ b/.github/workflows/bats-tests.yml @@ -22,9 +22,7 @@ jobs: 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: | From 62b5d2cfa396e9a3b3b96033ffe54054a7ae581b Mon Sep 17 00:00:00 2001 From: Bimochan Shrestha Date: Mon, 4 Nov 2024 20:19:55 +0545 Subject: [PATCH 3/4] chores/main-branch: Add git config --- .github/workflows/bats-tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/bats-tests.yml b/.github/workflows/bats-tests.yml index e52724c..a60d0c2 100644 --- a/.github/workflows/bats-tests.yml +++ b/.github/workflows/bats-tests.yml @@ -16,6 +16,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Set up Git configurations + run: | + git config --global user.name "CI User" + git config --global user.email "ci@example.com" + - name: Set up Git run: | sudo apt-get update From fda37f54d704a8126b454502c4744a4d91b3931a Mon Sep 17 00:00:00 2001 From: Bimochan Shrestha Date: Mon, 4 Nov 2024 20:20:48 +0545 Subject: [PATCH 4/4] chores/main-branch: Use checkout v4 --- .github/workflows/bats-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bats-tests.yml b/.github/workflows/bats-tests.yml index a60d0c2..4d3f1f5 100644 --- a/.github/workflows/bats-tests.yml +++ b/.github/workflows/bats-tests.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Git configurations run: |