From: Donatas Abraitis Date: Tue, 7 Feb 2023 20:03:42 +0000 (+0200) Subject: tools: Fetch more commits for commitlint to validate the commit X-Git-Tag: base_9.0~416^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F12759%2Fhead;p=mirror%2Ffrr.git tools: Fetch more commits for commitlint to validate the commit 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 --- diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 8ed60aee3b..e9c66a9036 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -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