Skip to content

Commit 0ae0029

Browse files
Optimized check_commit_messages GitHub action.
1 parent b33c31d commit 0ae0029

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/check_commit_messages.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
4444
- name: Fetch relevant branches
4545
run: |
46-
git fetch origin $BASE:base
47-
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr
46+
git fetch origin $BASE:base --depth=1
47+
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr --depth=1
4848
4949
- name: Check commit messages prefix
5050
env:
@@ -79,8 +79,8 @@ jobs:
7979

8080
- name: Fetch relevant branches
8181
run: |
82-
git fetch origin $BASE:base
83-
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr
82+
git fetch origin $BASE:base --depth=1
83+
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr --depth=1
8484
8585
- name: Check commit messages suffix
8686
run: |

0 commit comments

Comments
 (0)