]> git.puffer.fish Git - mirror/frr.git/commitdiff
tools: Fetch more commits for commitlint to validate the commit 12759/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 7 Feb 2023 20:03:42 +0000 (22:03 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 7 Feb 2023 20:03:42 +0000 (22:03 +0200)
Note: It's necessary that you specify the fetch-depth argument to
actions/checkout@v2 step. By default they fetch only latest commit of the
branch, but we need more commits since we validate a range of commit messages.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
.github/workflows/commitlint.yml

index 8ed60aee3b4a6fd96389e55e66a48aab3d68b6a9..e9c66a9036806158ed51fab221bbd2898d6001ff 100644 (file)
@@ -18,6 +18,8 @@ jobs:
     steps:
       - name: Checkout
         uses: actions/checkout@v3
+        with:
+          fetch-depth: 0
 
       - name: Check Commit
         uses: wagoid/commitlint-github-action@v5