summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-02-07 21:03:42 +0100
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-02-07 21:03:42 +0100
commit8428482abb16921c33d2f1c530041ce86dc3404d (patch)
tree571871fb1cba69093a20606d3ed75b837e244042 /.github
parenttools: Revalidate commits when PR is updated (diff)
downloadfrr-8428482abb16921c33d2f1c530041ce86dc3404d.tar.xz
frr-8428482abb16921c33d2f1c530041ce86dc3404d.zip
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 <donatas@opensourcerouting.org>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/commitlint.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml
index 8ed60aee3..e9c66a903 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