]> git.proxmox.com Git - mirror_frr.git/commitdiff
tools: Do not run commit linter for other branches than master
authorDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 5 Mar 2023 19:12:23 +0000 (21:12 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 5 Mar 2023 19:15:18 +0000 (21:15 +0200)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
.github/workflows/commitlint.yml

index ea5b7041883bfea4ba40176d8e447afbf1412444..06bf3b3b959acb154400203b0b8110420fa4b287 100644 (file)
@@ -10,8 +10,9 @@ on:
       - unlabeled
 
 jobs:
-  lint:
-    if: github.repository == 'frrouting/frr'
+  commitlint:
+    if: github.repository == 'frrouting/frr' && github.base_ref == 'refs/heads/master'
+    name: Check if the commits meet the requirements of the guidelines
     permissions:
       contents: read
       pull-requests: read